[Neo4j] missing required jta.jar for debian?

2011-07-12 Thread Eddy Respondek
I'm currently getting the following error message in Debian Lenny when
trying to run a class file.

Exception in thread main java.lang.NoClassDefFoundError:
javax/transaction/TransactionManager

As far as I can tell Debian is missing a jta.jar file which is apparently
apart Java EE 6 but this isn't one of Debian packages.

Do I need to manually install Java EE 6 or can I get JTA.jar somewhere
separately?

More info
javac -cp /usr/share/java/neo4j-kernel.jar:/usr/share/java/jta.jar
/tmp/gpneo4jimport.java
java -cp /tmp:/usr/share/java/neo4j-kernel.jar:/usr/share/java/jta.jar
gpneo4jimport

java version 1.6.0_22
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] missing required jta.jar for debian?

2011-07-12 Thread Chris Gioran
Hi Eddy,

what you are missing is the JTA specification jar. You can find a copy here:

http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.jar

Neo4j uses maven to manage its dependencies so that such necessary
libraries are located and downloaded automatically. This has the
additional advantage that if you have a dependency management system
as well all this will be automatically taken care for you.

To get back to your questions, no, JavaEE is nowhere near needed for
running neo4j. For the kernel you will need, apart from JTA above,

http://repo1.maven.org/maven2/org/osgi/osgi_R4_core/1.0/osgi_R4_core-1.0.jar
http://repo1.maven.org/maven2/org/osgi/osgi_R4_compendium/1.0/osgi_R4_compendium-1.0.jar

as well and you should be good to go. For the tests, junit is also needed.
I don't know of a way to have these dependencies managed from the
package managers that come with linux distros, so either a dependency
manager or manual downloads are your options here.

In general, the pom.xml in every project has a listing of all the
dependencies you will need.

cheers,
CG

On Tue, Jul 12, 2011 at 4:18 PM, Eddy Respondek
eddy.respon...@gmail.com wrote:
 I'm currently getting the following error message in Debian Lenny when
 trying to run a class file.

 Exception in thread main java.lang.NoClassDefFoundError:
 javax/transaction/TransactionManager

 As far as I can tell Debian is missing a jta.jar file which is apparently
 apart Java EE 6 but this isn't one of Debian packages.

 Do I need to manually install Java EE 6 or can I get JTA.jar somewhere
 separately?

 More info
 javac -cp /usr/share/java/neo4j-kernel.jar:/usr/share/java/jta.jar
 /tmp/gpneo4jimport.java
 java -cp /tmp:/usr/share/java/neo4j-kernel.jar:/usr/share/java/jta.jar
 gpneo4jimport

 java version 1.6.0_22
 Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
 Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
 ___
 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