0

Error compiling Java bindings alljoyn: jar not found

asked 2014-06-26 07:05:08 -0800

capagira87 gravatar image

Hi everybody! I have tried to compile Alljoyn on my Ubuntu 12.10 with the following command:

scons BINDINGS="java" V=1

but I'm having this error message from the shell:

scons: Building targets ...
[JAR]     build/linux/x86/debug/dist/java/jar/alljoyn.jar
sh: 1: jar: not found
scons: *** [build/linux/x86/debug/dist/java/jar/alljoyn.jar] Error 127
scons: building terminated because of errors.

How could it be solved? Anyway I have realized that there is not a jar folder in alljoyn_java.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-06-26 10:35:21 -0800

waynelee gravatar image

Did you previously export JAVA_HOME and CLASSPATH?

Be sure to follow up the Linux setup guide to install required tools: https://allseenalliance.org/docs-and-downloads/documentation/configuring-build-environment-linux-platform

Also, the full build output would be helpful.

edit flag offensive delete publish link more

Comments

Yes and I've also followed the steps presented in the Linux setup guide.

capagira87 ( 2014-06-26 14:56:27 -0800 )edit

Hi Capagira87, I have the same problem as yours. Have you resolved it? And could please you show me how to achieve alljoyn.jar? Thanks a lot.

congtam ( 2014-07-08 00:02:18 -0800 )edit

No congtam, I have not resolved it yet. It seems that there is not the alljoyn.jar file in the directory.

capagira87 ( 2014-07-18 06:11:54 -0800 )edit
0

answered 2014-07-17 16:00:12 -0800

mquon gravatar image

Hi, please make sure that "jar" is in your path - it looks like it may not be. Run 'which jar' to see if your path has been set properly.

Mike

edit flag offensive delete publish link more
0

answered 2014-07-18 11:58:51 -0800

Nikhil Dabhade gravatar image

The output of building building the Java bindings for AllJoyn will be found under topmost level build folder and not under alljoyn_java.

The jar folder will be under <alljoyn dir="">/build/linux/x86_64/debug/dist/java/jar</alljoyn>

You would also need the libraries located under lib folder on the same level as the jar folder.

Let me know if that does not solve your problem.

Regards, Nikhil

edit flag offensive delete publish link more

Comments

I've checked in the jar folder, but there is any file in it. So that folder is empty...

capagira87 ( 2014-07-21 06:42:57 -0800 )edit

Can you post the exact scons command and the directory from where you are executing it ?

Nikhil Dabhade ( 2014-07-21 10:55:11 -0800 )edit

The command used is scons Bindings="java". If I try to execute it on the alljoyn folder, it gives me the error that it doesn't find the alljoyn.jar file. But if I execute it in the alljoyn_core folder, it gives me no error, but it doesn't create alljoyn.jar file.

capagira87 ( 2014-07-21 15:50:26 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-06-26 07:05:08 -0800

Seen: 353 times

Last updated: Jul 18 '14