Hi!

For information on how to manage the classpath in Eclipse:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-properties-build-path.htm

NetBeans:
http://java.sun.com/developer/onlineTraining/tools/netbeans_part1/#importing

NetBeans comes with built-in suport for Maven, see the instructions 
regarding Maven here:
http://wiki.neo4j.org/content/Getting_Started_Guide
(then Maven will handle the classpath for you)

/anders

On 06/09/2010 08:42 AM, Tobias Ivarsson wrote:
> You need to add the Neo4j jar-files to your classpath, both when compiling
> and running your application:
>
> compiling:
> javac -classpath
> /path/to/neo4j-apoc-1.0/lib/neo4j-kernel-1.0.jar:/path/to/neo4j-apoc-1.0/lib/geronimo-jta_1.1_spec-1.1.1
> /path/that/contains/your/java/source
>
> running:
> java -classpath
> /path/to/neo4j-apoc-1.0/lib/neo4j-kernel-1.0.jar:/path/to/neo4j-apoc-1.0/lib/geronimo-jta_1.1_spec-1.1.1:/path/that/contains/your/compiled/java/classes
> your.main.java.Class
>
> You might be able to use wildcards for the classpath:
> java
> -classpath 
> /path/to/neo4j-apoc-1.0/lib/\*:/path/that/contains/your/compiled/java/classes
> your.main.java.Class
> (same for javac)
>
>
> Or, if you want to always have Neo4j in your classpath you can add it to the
> java extensions directory.
> On Mac OS X the java extension directory
> is: /System/Library/Java/Extensions/ or /Library/Java/Extensions/
>    it might be possible to use a similar directory in ~/Library for just the
> current users
> On Linux it is: /path/to/the/jdk-installation/lib/ext
> Windows probably has a similar path to Linux.
>
> Cheers,
> Tobias
>
> On Tue, Jun 8, 2010 at 11:26 PM, Mayank Grover<mayank.rob...@gmail.com>wrote:
>
>> hi users,
>> im trying to wrk on an example which uses neo4j embedded database in java
>> application..It gives an error (PACKAGE DOESNT EXIST) in all the import
>> statements n the package statement...
>> I want to knw where shld i place the neo4j-apoc-1.0 folder so dat i can use
>> it in the java application..
>> HELP NEEDED..
>> the example is below :
>>
>> package org.neo4j.examples.apoc;
>>
>> import org.neo4j.graphdb.Direction;
>> import org.neo4j.graphdb.GraphDatabaseService;
>> import org.neo4j.graphdb.Node;
>> import org.neo4j.graphdb.RelationshipType;
>> import org.neo4j.graphdb.Transaction;
>> import org.neo4j.kernel.EmbeddedGraphDatabase;
>> _______________________________________________
>> Neo4j mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
>>
>
>
>
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to