rilian-la-te / java-swing-ayatana

Automatically exported from code.google.com/p/java-swing-ayatana
1 stars 1 forks source link

No Support for ORacle JDeveloper R2 #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installing Oracle JDeveloper R2

No Support for Release 2 of Oracle JDeveloper.

While Java Ayatana works for JDeveloper Release 1, it does not for Release 2. 
I can't spot what the problem is yet. Maybe because JDeveloper R2 relies on its 
embedded ORacle JDK/JRE instead of the Operating System JDK/JRE.
So far, the way JDeveloper handles extensions has not changed from R1 to R2. So 
still investigating.

Original issue reported on code.google.com by hanynow...@gmail.com on 1 Nov 2012 at 7:18

GoogleCodeExporter commented 9 years ago
NOT SOLVED TEY. (Netbeans and Intellij IDEA working fine, but not JDeveloper 
R2).

Original comment by hanynow...@gmail.com on 6 Nov 2012 at 12:30

GoogleCodeExporter commented 9 years ago
Please help me to test JDeveloper R2, I believe that it works

Original comment by danjaredg on 4 Dec 2013 at 3:32

GoogleCodeExporter commented 9 years ago
OK. But what Version of Ubuntu? 12.04 or 13.10?

Original comment by hanynow...@gmail.com on 4 Dec 2013 at 8:11

GoogleCodeExporter commented 9 years ago
It works only on Ubuntu 13.10 with branch 2.0, you need export this environment 
variables:

<mapEntry key="JAVA_TOOL_OPTIONS" value="-agentlib:jayatanaag"/>
<mapEntry key="JAYATANA_CLASSPATH" 
value="${workspace_loc:jayatana/target/classes}"/>
<mapEntry key="JAYATANA_LIBPATH" 
value="${workspace_loc:libjayatana/libjayatana.so}"/>
<mapEntry key="LD_LIBRARY_PATH" value="${workspace_loc:libjayatanaag}"/>

Original comment by danjaredg on 5 Dec 2013 at 4:54

GoogleCodeExporter commented 9 years ago
Hi,
Could you please specify in details how to enable Jayatana for Ubuntu 13.10
in order to test it.
I don't really understand what I am supposed to do.
In Branch 2.0, there are 3 projects: Two C projects (C Library) and one
EClipse project.
How is this supposed to work? And the variables, you mean export them as
system variables:
export JAVA_TOOL_OPTIONS="-agentlib:jayatanaag" ....etc

Original comment by hanynow...@gmail.com on 12 Dec 2013 at 5:15

GoogleCodeExporter commented 9 years ago
First need compile all, you need install default-jdk, unity-dev, libxt-dev and 
make packages and download a maven3.

The C proyects compile with "make", and java project compile with "mvn compile"

Then, You only need export this the environment variables:

export JAVA_TOOL_OPTIONS=-agentlib:jayatanaag
export JAYATANA_CLASSPATH=JAYATANA_PROJECT_DIR/target/classes
export JAYATANA_LIBPATH=LIBJAYATANA_PROJECT_DIR/libayatana.so
export LD_LIBRARY_PATH=LIBJAYATANAAG_PROJECT_DIR/libayatanaag.so

And that's all, you can run any Java swing application with appmenu support.

The goal of projects is integrate native libraries in Ubuntu system with 
"ldconf", and put jayatana jar file on shared directory. And finally create a 
"/etc/profile.d/jayatana.sh" file with "JAVA_TOOL_OPTIONS" environment 
variable. In this point, You use any java version and any java swing 
application with appmenu support.

The project "libjayatanaag" scans all the threads that are generated, if the 
thread is a AWT thread started a Java Swing Integration (for the moment).

The project "jayatana" create a Swing Listeners to wait any Windows with a menu 
bar.

The project "libjayatana" creates a bridge between Java and Ubuntu for 
integration

Original comment by danjaredg on 12 Dec 2013 at 10:09

GoogleCodeExporter commented 9 years ago
Sorry the real value of LD_LIBRARY_PATH is

export LD_LIBRARY_PATH=LIBJAYATANAAG_PROJECT_DIR

Original comment by danjaredg on 12 Dec 2013 at 10:10

GoogleCodeExporter commented 9 years ago
Thanks for the detail.
Yet, it seems there is a problem with the first export!!:
When I try to launch a (logisim) a Java Swing application, I get this error:
----------------------

74 19426 $ logisim
Picked up JAVA_TOOL_OPTIONS: -agentlib:jayatanaag
Picked up JAVA_TOOL_OPTIONS: -agentlib:jayatanaag
Error occurred during initialization of VM
Could not find agent library jayatanaag on the library path, with error:
libjayatanaag.so: cannot open shared object file: No such file or directory

Original comment by hanynow...@gmail.com on 12 Dec 2013 at 11:47

GoogleCodeExporter commented 9 years ago
The LD_LIBRARY_PATH can't be modify on startup, because the lightdm reset a 
LD_LIBRARY_PATH variable, you need export manualy or run the next command with 
root:

$ echo "JAYATANAAG_PROJECT_DIR" > /etc/ld.so.conf.d/jayatana.conf ; chmod ugo+r 
/etc/ld.so.conf.d/jayatana.conf ; ldconf

Original comment by danjaredg on 13 Dec 2013 at 2:34

GoogleCodeExporter commented 9 years ago
Version 2.0 was released, You can use ppa repository: ppa:danjaredg/jayatana

Original comment by danjaredg on 29 Jan 2014 at 2:19