Closed GoogleCodeExporter closed 8 years ago
Update: if I use deb packages from your ppa test example runs fine. Menu is
exported to the globalmenu but menu items don't work (nothing hapens on click).
Submenus aren't working either.
What's the difference between compiling libs from svn (r236) and using compiled
libs?
Original comment by sidius...@gmail.com
on 25 Mar 2014 at 2:50
The library libjawt is loaded by JVM,
You need compile all proyects
You need aditional environment variable to test:
* Using only classes directories:
JAVA_TOOL_OPTIONS=-agentpath:${libjayatanaag}/libjayatanaag.so
JAYATANA_CLASSPATH=${jayatana}/target/classes
JAYATANA_LIBPATH=${libjayatana}/libjayatana.so
* Using Jar files with java agent, Java Agent doesn't support folder classpath
only jar files
JAVA_TOOL_OPTIONS=-javaagent:${jayatanaag}/target/jayatanaag.jar
JAYATANA_CLASSPATH=${jayatana}/target/jayatana.jar
JAYATANA_LIBPATH=${libjayatana}/libjayatana.so
Original comment by danjaredg
on 26 Mar 2014 at 5:28
In Java Agent mode I forgent another environment variable
JAYATANA_LIBAGPATH=${libjayatanaag}/libjayatanaag.so
Original comment by danjaredg
on 26 Mar 2014 at 5:29
Original comment by danjaredg
on 31 Mar 2014 at 5:19
Thanks for a reply. So I set env variables according to you and tried to test
the latest revision.
1) Agent mode
% echo $JAVA_TOOL_OPTIONS
-javaagent:/home/sidius/2.0/jayatanaag/target/jayatanaag.jar
% echo $JAYATANA_CLASSPATH
/home/sidius/2.0/jayatana/target/jayatana.jar
% echo $JAYATANA_LIBPATH
/home/sidius/2.0/libjayatana/libjayatana.so
% echo $JAYATANA_LIBAGPATH
/home/sidius/2.0/libjayatanaag/libjayatanaag.so
% java com.jarego.jayatana.test.Swing
Picked up JAVA_TOOL_OPTIONS:
-javaagent:/home/sidius/2.0/jayatanaag/target/jayatanaag.jar
JAYATANA_LIBAGPATH=/home/sidius/2.0/libjayatanaag/libjayatanaag.so
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Caused by: java.lang.UnsatisfiedLinkError:
/home/sidius/2.0/libjayatanaag/libjayatanaag.so: libjawt.so: cannot open shared
object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
at java.lang.Runtime.load0(Runtime.java:795)
at java.lang.System.load(System.java:1062)
at com.jarego.jayatana.Agent.premain(Unknown Source)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed
zsh: abort java com.jarego.jayatana.test.Swing
2) Using classes:
% echo $JAVA_TOOL_OPTIONS
-agentpath:/home/sidius/2.0/libjayatanaag/libjayatanaag.so
% echo $JAYATANA_CLASSPATH
/home/sidius/2.0/jayatana/target/antclasses
~/2.0/jayatanatest/src/main/java % echo $JAYATANA_LIBPATH
/home/sidius/2.0/libjayatana/libjayatana.so
% java com.jarego.jayatana.test.Swing
Picked up JAVA_TOOL_OPTIONS:
-agentpath:/home/sidius/2.0/libjayatanaag/libjayatanaag.so
Error occurred during initialization of VM
Could not find agent library /home/sidius/2.0/libjayatanaag/libjayatanaag.so in
absolute path, with error: libjawt.so: cannot open shared object file: No such
file or directory
Original comment by sidius...@gmail.com
on 31 Mar 2014 at 6:22
Original issue reported on code.google.com by
sidius...@gmail.com
on 25 Mar 2014 at 1:32