Hi Luigi,

The error I posted prior to this email was in eclipse IDE but the same 
program when I run at command line interface. its showing these two errors

Oreint.java:32: error: package com.tinkerpop.blueprints does not exist
import com.tinkerpop.blueprints.TransactionalGraph;
                               ^
Oreint.java:33: error: package com.tinkerpop.blueprints.impls.orient does 
not exist
import com.tinkerpop.blueprints.impls.orient.OrientGraph;
                                            ^
I have checked my lib folder blueprints-core-2.6.0.jar is also there and 
when extracted com.tinkerpop.blueprints.TransactionalGraph is also present. 
only com.tinkerpop.blueprints.impls.orient.OrientGraph is not there.

my program for ur reference

//import orientdb.lib;
package D.orientdb.lib;
//package D.orientdb.lib.downloads_mine;

//import com.orientechnologies.orient.jdbc;
/*
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.sql.*;
import java.util.Properties;
*/
/*
import org.junit.Test;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
*/
/* import static java.sql.ResultSet.CONCUR_READ_ONLY;
import static java.sql.ResultSet.HOLD_CURSORS_OVER_COMMIT;
import static java.sql.ResultSet.TYPE_FORWARD_ONLY;
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Properties;
import java.sql.*;

import com.orientechnologies.orient.jdbc.OrientJdbcConnection;
import com.tinkerpop.blueprints.TransactionalGraph;
import com.tinkerpop.blueprints.impls.orient.OrientGraph;
class Oreint 
{
public static void main(String args[]) throws SQLException
{
//ODatabaseDocumentTx db = new 
ODatabaseDocumentTx("remote:localhost/raju").create();
/* declare admin credentials */
Properties credentials = new Properties();
credentials.put("user", "admin");
credentials.put("password", "admin");
/* obtain a connection */
Class.forName("com.orientechnologies.orient.jdbc.OrientJdbcDriver");
Connection conn = (OrientJdbcConnection) 
DriverManager.getConnection("jdbc:orient:remote:localhost/GratefulDeadConcerts",
 
credentials);
/* perform a query */
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("select from OUser");
/* consume the resultset */
//SimpleDateFormat dateFormatter = new SimpleDateFormat("MMMMM dd,yyyy");
while (rs.next()) {
String title = rs.getString(0);
String text = rs.getString(1);
//Timestamp timestamp = rs.getTimestamp("pubDate");
//String date= dateFormatter.format((java.util.Date) timestamp);
System.out.printf("%s\n%s\n%s\n\n\n",title,text);
}
rs.close();
stmt.close();
conn.close();
System.out.println("welcome to oreint db");
}
}

help me Luigi.

Thanking You,
With Best Regards,
Lova Raju Allumalla

On Tuesday, September 15, 2015 at 12:52:15 PM UTC+5:30, 
[email protected] wrote:
>
> Dear Team,
>
> I am a novice to oreint DB I get the below message when I run my java 
> program trying to access OreintDB. looking forward for help
>
> Sep 15, 2015 11:08:55 AM com.orientechnologies.common.log.OLogManager log
> INFO: OrientDB auto-config DISKCACHE=1,023MB (heap=1,024MB os=4,095MB 
> disk=27,784MB)
> Exception in thread "Main Thread" java.lang.NoSuchMethodError: acquire
> at 
> com.orientechnologies.orient.jdbc.OrientJdbcConnection.<init>(OrientJdbcConnection.java:64)
> at 
> com.orientechnologies.orient.jdbc.OrientJdbcDriver.connect(OrientJdbcDriver.java:46)
> at java.sql.DriverManager.getConnection(DriverManager.java:582)
> at java.sql.DriverManager.getConnection(DriverManager.java:154)
> at OreintDB.Oreint.main(Oreint.java:38)
>
>
> *MY JAVA API IS*
>
> import java.sql.*;
> import java.util.Properties;
>  
>
>  import com.orientechnologies.orient.jdbc.OrientJdbcConnection;
>
>
>  import static java.sql.ResultSet.CONCUR_READ_ONLY;
>  import static java.sql.ResultSet.HOLD_CURSORS_OVER_COMMIT;
>  import static java.sql.ResultSet.TYPE_FORWARD_ONLY;
> class Oreint 
> {
> public static void main(String args[]) throws SQLException
> {
> //ODatabaseDocumentTx db = new 
> ODatabaseDocumentTx("remote:localhost/raju").create();
> try{
> Class.forName("com.orientechnologies.orient.jdbc.OrientJdbcDriver");
> /* declare admin credentials */
> Properties credentials = new Properties();
> credentials.put("user","admin");
> credentials.put("password","admin");
> /* obtain a connection */
> Connection conn = 
> (OrientJdbcConnection)DriverManager.getConnection("jdbc:orient:remote:localhost/GratefulDeadConcerts",credentials);//
>  
> DriverManager.getConnection("jdbc:orient:remote:localhost/GratefulDeadConcerts",credentials);
> Statement stmt = 
> conn.createStatement();//(OrientJdbcStatement)conn.createStatement();
> ResultSet rs = stmt.executeQuery("select from 
> OUser");//(OrientJdbcResultSet) stmt.executeQuery("select from OUser");
>
> /* perform a query */
>
> /* consume the resultset */
>
> while (rs.next()) {
> String title = rs.getString(0);
> String text = rs.getString(1);
>
> System.out.printf("%s\n%s\n%s\n\n\n",title,text);
> }
> rs.close();
> stmt.close();
> conn.close();
> }
> catch(Exception err)
> {
>   err.printStackTrace(); 
> }
> System.out.println("welcome to oreint db");
> }
> }
>
> Thanking You,
> Lova Raju
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to