Home  |  About  | Last |  Submit  |  Contact
AllQuests.com




Previous Question:  Deluge wont load new torrents > traceback  General HelpNext Question:  [ubuntu] fixing Ubuntu 7.something  Hardware Laptops
Question Java on UBUNTU ( Ubuntu Forums General Help )
Updated: 2008-11-23 01:45:22 (9)
Java on UBUNTU

I can access this site http://charting.bseindia.com from windows without a problem
Its a Java applet to see stocks

Also in windows using appletviewer I can run the applet
C:\> appletviewer http://charting.bseindia.com

While in UBUNTU neither can i access the site nor the applet runs properly
It only loads partially and then breaks
Even though java is installed and java plugins are enabled

While running appletviewer in UBUNTU I get this problem

java.lang.NullPointerException
at equis.metastock.MS4Java.repaint([DashoPro-V1.2-120198])
at sun.awt.X11.XCanvasPeer.setBackground(XCanvasPeer. java:95)
at sun.awt.X11.XPanelPeer.setBackground(XPanelPeer.ja va:79)
at java.awt.Component.setBackground(Component.java:15 75)
at equis.metastock.MS4Java.init([DashoPro-V1.2-120198])
at sun.applet.AppletPanel.run(AppletPanel.java:417)
at java.lang.Thread.run(Thread.java:619)


Please help me run this applet on ubuntu
It is one of the reasons why i still have to use windows


Thanks
Xavier

Answers: Java on UBUNTU ( Ubuntu Forums General Help )
Java on UBUNTU

Which version of java do you use?

EDIT: And it is possible to write something in Java which is platform dependent.

nereid

Java on UBUNTU

Try installing the Sun version of java, if it's not already installed. (the package is called sun-java5-jre)
Then run "sudo update-alternatives --config java" and choose the sun version.

bukwirm

Java on UBUNTU

I was able to see all the stocks & stuff using GNU classpath without an issue. It just renders things a bit slow as its an interpretor. I have installed gcj-compat-java as well as gcj-compat-java-dev alongwith couple of other things.

ShirishAg75

Java on UBUNTU

Quote:
Which version of java do you use?
On windows its sun java 5.
On ubuntu i have tried sun java 5 as well as 6.

xavier_r

Java on UBUNTU

Quote:
Originally Posted by ShirishAg75
I was able to see all the stocks & stuff using GNU classpath without an issue. It just renders things a bit slow as its an interpretor. I have installed gcj-compat-java as well as gcj-compat-java-dev alongwith couple of other things.
This is GNU java right?

xavier_r

Java on UBUNTU

Quote:
Originally Posted by xavier_r
This is GNU java right?
Yes, you might have to set the path for sun java. Try java -version in the terminal, if the response is of some gcj version you would have to set path for sun java that you have already installed.

vikramsharma

Java on UBUNTU

Quote:
Originally Posted by vikramsharma
Yes, you might have to set the path for sun java. Try java -version in the terminal, if the response is of some gcj version you would have to set path for sun java that you have already installed.
Dude those things are set...
Java is perfectly installed on my computer...

I am only wondering why the right applet does not load
the left applet loads perfectly

xavier_r

Java on UBUNTU

Quote:
Originally Posted by xavier_r
Dude those things are set...
Java is perfectly installed on my computer...

I am only wondering why the right applet does not load
the left applet loads perfectly
My bad, sorry for jumping the gun there.

vikramsharma

Java on UBUNTU

Can anyone please successfully run this Java app on your ubuntu machine?
http://charting.bseindia.com

I cannot see any graph

xavier_r

Previous Question:  Deluge wont load new torrents > traceback  Ubuntu Forums  General HelpNext Question:  [ubuntu] fixing Ubuntu 7.something  Ubuntu Forums  Hardware Laptops

- Source: Java on UBUNTU Ubuntu Forums General Help
- Previous Question: Deluge wont load new torrents > traceback Ubuntu Forums General Help
- Next Question: [ubuntu] fixing Ubuntu 7.something Ubuntu Forums Hardware Laptops