Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - 64bit Environments
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - 64bit Environments Running an AMD64 or Xeon system? Of course Linux is ready for it - but if you have any questions feel free to ask in here!

 
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-Jan-2008, 02:27
maoting
Guest
 
Posts: n/a
Default

Alright, I am sorry that could not contribut much to the community and yet i am having so many questions.... but I guess this one might be helpful for the other since i have looked through everywhere and found not much info on this, except someone said it worked.

Here it goes:

I downloaded Jcreator LE for win32 from www.jcreator.com, and put it into my 10.3 64bit and run it with
wine Setup.exe

(not sure if this is legal, if it is not plz tell me and i will delete my post)


The first time it failed and I have no time to catch the error message at all, then the second time it sucessfully loaded the installation er.. wizard. (The 1st time i run with right click-> run with wine)

So i just keep clicking next and let wine handle the rest of it, the result seemed quite good, wine had even create a desktop luncher for it.

During my first test project, I have initially failed to add the JDK profile(the JDK directory) but later on, I figure if i go through the root directory on the browse dialog, Jcreator would be able to load the classes and src.zip by scanning through the directory. (Btw, my jdk was made available by installing it on a window and copied over)

So with same approach, I have sucessfully located the compiler, the javac.exe.
(With the classes get compiled with libraries imported.)


However, problems occured when I was about to lunch my frame with the "luch application" in Jcreator.

The default launcher of java program is java.exe in the JDK(used by Jcreator), however, I am quite certain this JDK from window cannot intereact with my gnome desktop to create a proper Gtk window.

Now i am kindda stuck, or failed with this experiment.

However, I got a feeling that if I could point the intepreter (java.exe) in window to the JRE in linux, this might just be able to work. Problem is, I don't know where is the JRE installed ^^"

I have searched through the usr/java(version) and found out they are practically quite empty...

and even if I have locate the JRE, I was thinking it might be something like a so file ... or even JAR ==

Just would like to know if anybody have encountered this, or have made used of JCreator on gnome before?
Or, perhaps would like to just enlighten me where is the JRE, and maybe how does JRE in linux lunch application?
  #2 (permalink)  
Old 11-Jan-2008, 15:27
lxuser
Guest
 
Posts: n/a
Default

Quote:
Alright, I am sorry that could not contribut much to the community and yet i am having so many questions.... but I guess this one might be helpful for the other since i have looked through everywhere and found not much info on this, except someone said it worked.

Here it goes:

I downloaded Jcreator LE for win32 from www.jcreator.com, and put it into my 10.3 64bit and run it with
wine Setup.exe

(not sure if this is legal, if it is not plz tell me and i will delete my post)
The first time it failed and I have no time to catch the error message at all, then the second time it sucessfully loaded the installation er.. wizard. (The 1st time i run with right click-> run with wine)

So i just keep clicking next and let wine handle the rest of it, the result seemed quite good, wine had even create a desktop luncher for it.

During my first test project, I have initially failed to add the JDK profile(the JDK directory) but later on, I figure if i go through the root directory on the browse dialog, Jcreator would be able to load the classes and src.zip by scanning through the directory. (Btw, my jdk was made available by installing it on a window and copied over)

So with same approach, I have sucessfully located the compiler, the javac.exe.
(With the classes get compiled with libraries imported.)
However, problems occured when I was about to lunch my frame with the "luch application" in Jcreator.

The default launcher of java program is java.exe in the JDK(used by Jcreator), however, I am quite certain this JDK from window cannot intereact with my gnome desktop to create a proper Gtk window.

Now i am kindda stuck, or failed with this experiment.

However, I got a feeling that if I could point the intepreter (java.exe) in window to the JRE in linux, this might just be able to work. Problem is, I don't know where is the JRE installed ^^"

I have searched through the usr/java(version) and found out they are practically quite empty...

and even if I have locate the JRE, I was thinking it might be something like a so file ... or even JAR ==

Just would like to know if anybody have encountered this, or have made used of JCreator on gnome before?
Or, perhaps would like to just enlighten me where is the JRE, and maybe how does JRE in linux lunch application?
[/b]
look in /usr/lib or /usr/lib64
  #3 (permalink)  
Old 13-Jan-2008, 20:07
maoting
Guest
 
Posts: n/a
Default

Quote:
look in /usr/lib or /usr/lib64
[/b]
Thx for the reply

Hmm, I have /java, /java-1.4.x, /java-1.5.0, /java-1.6.0, /jvm, /jvm-export,/jvm-private
These looks like the files Java runtime is using...

a little bit of exploration, I figured only those /jmv folder has files in it..

and after browsing through, the files in jvm are pretty much links to each other...

there are only two looked of intrest:

many of the links is pointing to
/usr/bin/gij , which eventually point to /usr/bin/gij-4.2....
Question: How a java load a frome from this file ? (assuming this is the one)

The other one is cacao, which almost all that associate with this links to a script:

exec /usr/lib64/jvm/java-1.4.2-cacao-0.97/jre/bin/cacao ${1+"$0"} ...
Question: is this the one that loads a Java frame? There's a libjawt.so link within the folder so I guess this might be the one...

(wat is cacao anyway ^^")

Finally, the unresolved problem is that, when using JCreator with wine, the application was run in dos command, like my compiler was run sucessfully with simulated commands like:
y:>cd yDesktop\jdk1.5.0\bin\
y:>javac.exe -classpath "$[classpath]$" -d "$[OutputPath]$" "$[JavaFiles]$"

(These are in the Jcreator configuration box which could be filled in as "Command" and "Parameter")


Now, because I have used the Windows version of JDK, my copilation workded, but now if I want to load a frame, the Jcreator do something like:
y:>cd yDesktop\jdk1.5.0\bin\
y:>java.exe -(parameter lost due to previously I played with it... but i guess the notion is clear)

Now, problem occured. I believe these command are run in Wine? In order to run these on a linux console, I will need to jump out of wine?

As wine is a simulator, I assume it's running under linux cosole like:

~:>wine (execute programe)

So, I looked for wine--help in the console to see whether is it possible to fill in the box in Jcreator to run something out of wine....

It give me a very brief explanation... Now I am looking for possible ways in wine to do that,


Uptill here, I need anyone who have read this post so far to give me your opinion on whether what I wanted to do is possible, or is it totally off treck,wouldn't want to waste time on something won't work.

Also, i would appreciate any other method to get Jcreator works in Linux... or other hint or opinion





  #4 (permalink)  
Old 13-Jan-2008, 20:27
lxuser
Guest
 
Posts: n/a
Default

So you want to develop java applications in Linux? Must you use Jcreator? Sun has a free Java IDE (Sun enterprise studio), and Eclipse is another great tool.

To see the java environment on your system here are two commands:
update-alternatives --config java
update-alternatives --config javac


Run as root

An example of what you should see:

Code:
# update-alternatives --config java

There are 4 programs which provide `java'.

**Selection****Command
-----------------------------------------------
******1********/usr/lib64/jvm/jre-1.4.2-cacao/bin/java
******2********/usr/lib64/jvm/jre-1.4.2-gcj/bin/java
******3********/usr/lib64/jvm/jre-1.5.0-sun/bin/java
*+****4********/usr/lib/jvm/jre-1.6.0.u3.sr2-sun/bin/java

Enter to keep the default[*], or type selection number:
Code:
 # update-alternatives --config javac

There are 4 programs which provide `javac'.

**Selection****Command
-----------------------------------------------
******1********/usr/lib64/jvm/java-1.4.2-cacao/bin/javac
******2********/usr/lib64/jvm/java-1.4.2-gcj/bin/javac
***** 3********/usr/lib64/jvm/java-1.5.0-sun/bin/javac
 +****4********/usr/lib/jvm/java-1.6.0.u3.sr2-sun/bin/javac

Enter to keep the default[*], or type selection number:**********
  #5 (permalink)  
Old 14-Jan-2008, 01:24
maoting
Guest
 
Posts: n/a
Default

Quote:
So you want to develop java applications in Linux? Must you use Jcreator? Sun has a free Java IDE (Sun enterprise studio), and Eclipse is another great tool.
[/b]
Thnaks for this tip, and the update alternatives as well.

I am using JCreator because it comes in a cd with my college textbook.. ^^"

Funny thing is, Jcreator works now, by installing JDK in Wine....

using window setup file , of cource

I made a short cut on my desktop point to /home/username/.wine ...
and locate the java.exe in windows...

It load my frame now, just that, a memory shock seems to happen when i launch my application,
the gnome desktop went black for a sec and only reload the graphic back when my mouse pointer point to the part that went black...

may be competibility issue or my intel x3100 graphic chip (Sigh)

Will try on Sun enterprise studio, since now I got a name for a new option! Thx!
  #6 (permalink)  
Old 14-Jan-2008, 01:45
lxuser
Guest
 
Posts: n/a
Default

Quote:
Thnaks for this tip, and the update alternatives as well.

I am using JCreator because it comes in a cd with my college textbook.. ^^"

Funny thing is, Jcreator works now, by installing JDK in Wine....

using window setup file , of cource

I made a short cut on my desktop point to /home/username/.wine ...
and locate the java.exe in windows...

It load my frame now, just that, a memory shock seems to happen when i launch my application,
the gnome desktop went black for a sec and only reload the graphic back when my mouse pointer point to the part that went black...

may be competibility issue or my intel x3100 graphic chip (Sigh)

Will try on Sun enterprise studio, since now I got a name for a new option! Thx!
[/b]

I understand what you're are saying now, but you don't need to use a specific IDE for creating java source code. You might as well run your software natively on Windows if you don't want these issues. The best thing to do is use the applications I suggested. They run natively in Linux. You wont experience the issue you are having now. My recommendation would be eclipse.

unless when you turn in your assignments, you have to turn them in a JCreator project file type. otherwise, your source code is the same regardless of IDE.

If you plan on doing programming, you can't tie yourself to one program; explore a little and good luck
  #7 (permalink)  
Old 15-Jan-2008, 02:51
maoting
Guest
 
Posts: n/a
Default

Quote:
If you plan on doing programming, you can't tie yourself to one program; explore a little and good luck
[/b]
I am afraid to say my luck is not as good as you when you post :
http://forums.suselinuxsupport.de/lofivers...php/t63636.html

I have hit the same error as your post, but this time the problem is ... I downloaded the tar ball executable from www.eclipse.org and i am still hitting this libgnomebreakpad problem...
The differeces is, I first noticed they want JavaVersion=1.5 (never say jdk or jre) so naturally I download the JJDK 1.5 from JAVA, after running the .bin file, with many enters for the license agreement, I got a JDK1.5.0 folder on my desktop whcich don't do anything....

then I tried with -vm to whichever java i could find with update-alternative trick.... now still working on it...

But the most important thing here is to clear some misunderstanding..... I graduated last year and no longer considered a student anymore ;p

I am now a TA in a small firm and doing whatever support I could to them, making a desktop application was a recent small project

I used all the way windows back to my old dayz since dos... recently swiched to linux becoz vista...

So i was kinda want to make my program on my newly set up linux laptop

thanks for your help and i will post watever happened to my eclipse after this

cheers
  #8 (permalink)  
Old 15-Jan-2008, 10:57
lxuser
Guest
 
Posts: n/a
Default

Quote:


I have hit the same error as your post, but this time the problem is ... I downloaded the tar ball executable from www.eclipse.org and i am still hitting this libgnomebreakpad problem...
The differeces is, I first noticed they want JavaVersion=1.5 (never say jdk or jre) so naturally I download the JJDK 1.5 from JAVA, after running the .bin file, with many enters for the license agreement, I got a JDK1.5.0 folder on my desktop whcich don't do anything....

then I tried with -vm to whichever java i could find with update-alternative trick.... now still working on it...

cheers
[/b]
You may need to add the suse java repo and use the rpm provided by suse instead of the version from sun.
  #9 (permalink)  
Old 15-Jan-2008, 11:16
lxuser
Guest
 
Posts: n/a
Default

here is a repo you can add to your choice package manager

http://download.opensuse.org/update/10.3/rpm/x86_64/
  #10 (permalink)  
Old 15-Jan-2008, 22:45
maoting
Guest
 
Posts: n/a
Default

Quote:
here is a repo you can add to your choice package manager

http://download.opensuse.org/update/10.3/rpm/x86_64/
[/b]
Hmm, I got a feeling it's not java's fault. I have downloaded another eclipse, this time I have both
eclipse-jee-europa-fall2-linux-gtk.tar.gz and
eclipse-java-europa-fall2-linux-gtk.tar.gz

to play with.

Both hit errors with what ever -VM I specified... and actually I figured the -vm is not the problem as the default -vm point to /usr/bin/java... which point to whichever Java I had chosen.

The message on a closer look:
Gtk-Message: Failed to load module "gnomebreakpad": libgnomebreakpad.so: cannot open shared object file: No such file or directory

Seems to be asking the "libgnomebreakpad.so".

Now, it seems I will have no choice and will have to adreess

-where does this file "libgnomebreakpad.so" located
-And, who is asking this file?

Here's a quick refernce to the full error message:

===================================
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m
-jar /home/maoting/Desktop/eclipse2/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828. jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/maoting/Desktop/eclipse2/eclipse
-name Eclipse
--launcher.library /home/maoting/Desktop/eclipse2/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.2.R 331_v20071019/eclipse_1021.so
-startup /home/maoting/Desktop/eclipse2/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828. jar
-exitdata 23800c
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m
-jar /home/maoting/Desktop/eclipse2/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828. jar

================================================== =

Really wanna have a JAVA compiler on my laptop...



 
Page 1 of 2 1 2

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2