Hi Luigi,
I am getting below given error when trying to run the script (PFA the
script). java program is not able to import the jar files , I have placed
them in the lib folder inside jdk.
Error Message:
C:\Program Files\Java\jdk1.8.0_31\bin>javac.exe
C:\odb\OrientDBEmbeddable.java
C:\odb\OrientDBEmbeddable.java:3: error: package
com.orientechnologies.orient.server does not exist
import com.orientechnologies.orient.server.OServerMain;
^
C:\odb\OrientDBEmbeddable.java:8: error: cannot find symbol
OServerMain
^
symbol: variable OServerMain
location: class OrientDBEmbeddable
2 errors
Thanks,
Shivanandan Gupta
On Friday, 20 February 2015 16:44:51 UTC+5:30, Shivanandan Gupta wrote:
>
> Hi Luige,
>
> Thanks a lot for your help , I will try this out.
>
> Thanks.
> Shivanandan Gupta
>
>>
>>
--
---
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.
import com.orientechnologies.orient.server.OServerMain;
public class OrientDBEmbeddable {
public static void main(String[] args) throws Exception {
OServer server = OServerMain.create();
server.startup(
"<?xml version=\"1.0\"
encoding=\"UTF-8\" standalone=\"yes\"?>"
+
"<orient-server>"
+ "<network>"
+ "<protocols>"
+ "<protocol
name=\"binary\"
implementation=\"com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary\"/>"
+ "<protocol
name=\"http\"
implementation=\"com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb\"/>"
+ "</protocols>"
+ "<listeners>"
+ "<listener
ip-address=\"0.0.0.0\" port-range=\"2424-2430\" protocol=\"binary\"/>"
+ "<listener
ip-address=\"0.0.0.0\" port-range=\"2480-2490\" protocol=\"http\"/>"
+ "</listeners>"
+ "</network>"
+ "<users>"
+ "<user
name=\"root\"
password=\"D5C27F56CEAEA7539EE0F9ABF1E7B2F576C872280733EF4B3A54EDD2D06B8206\"
resources=\"*\"/>"
+ "</users>"
+ "<properties>"
+ "<entry
name=\"orientdb.www.path\"
value=\"C:\"\"orientdb-community-2.0.1\"\"orientdb-community-2.0.1\"\"www/\"/>"
+ "<entry
name=\"orientdb.config.file\"
value=\"C:\"\"orientdb-community-2.0.1\"\"orientdb-community-2.0.1\"\"config\"\"config\"\"orientdb-server-config.xml\"\"\">"
+ "<entry
name=\"server.cache.staticResources\" value=\"false\"/>"
+ "<entry
name=\"log.console.level\" value=\"info\"/>" + "<entry name=\"log.file.level\"
value=\"fine\"/>"
+
"</properties>" + "</orient-server>");
}
}