LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-14-2006, 07:48 PM   #1
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 681

Rep: Reputation: 42
Question java app starts with splashscrean --then-- death


Thanks for all the help I have gotten from this site.

Normally I can solve my issues with google this one on the other hand has very little help from google.

I am trying to get an obscure java app to run on Etch (upgraded from Sarge). The app is FoundationStone. Their online help consists of 3 pages for unix based installs.

They are:
http://foundationstone.com.au/HtmlSu...stallUnix.html
http://foundationstone.com.au/HtmlSu...oubleUnix.html
http://foundationstone.com.au/HtmlSu...UnixHowTo.html


I have goggled FoundationStone and didn't find any other useful information. I have the TT fonts installed correctly I think. The instructions say that there is a setting to be changed in the program to use them, So I am thinking that should not cause the app to start up with the splash screen and then die. On the other hand I do have several XF86Config-4 files of various types in in /etc/X11/. So I am not really sure which one is being used.

Java is installed by the instructions off from Sun and is jre-1_5_0_08-linux-i586.bin the most recent at this time. Java seams to work right in my browsers.

I have not tried to contact the author as he is a busy man and may not be able to help at this time anyway because I am not sure it is not a problem with my system.

I tried redownloading the app and extracting it. No help. I reinstalled Java too. The only difference between my Java and the one on “Paul's Debian Unix How To” is that mine is installed as root. Yes I did try running the app as root and got the same splash and death. I did send Paul an email several days ago but got no response.

Now I am at a loss. I must be missing something but I am at a loss to know what.
 
Old 11-15-2006, 11:34 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Have you started the app from a shell, and looked for error output there?


CHeers,
Tink
 
Old 11-15-2006, 11:52 AM   #3
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 681

Original Poster
Rep: Reputation: 42
Thanks Tink

No I have not. Not sure how to start it from the shell.
 
Old 11-15-2006, 12:03 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Find out where the icon points to, open a shell, and do the same thing ;}


Cheers,
Tink
 
Old 11-15-2006, 07:39 PM   #5
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 681

Original Poster
Rep: Reputation: 42
Thanks to all

>Find out where the icon points to, open a shell, and do the same thing ;}
>
>
>Cheers,
>Tink

Don't have an icon yet. Figured I would figure that out after I got it to run. Would like to get into the K menue too. I was launching from Konqueror. I didn't have time earlier as I was only home for lunch.

I did figure out how to launch in a shell by cd to dir and filename. I launched from a regular shell not root. I don't know what to make of the output. I do see that shortly after launch the “PluginManager - classpath has been altered:” (quotes mine) then it list about 20 lines of path statements occasionally separated by a “:”. Each path ends with a different file. So I am not sure the “classpath has been altered:” matters.

I did look at the launch script and it has

do
CLASSPATH+${CLASSPATH}:$PWD}/$jar
done
export CALSSPATH

The next ting I run into that doesn't look right is the following from the shell output. I do see exception and error but not being a programmer none of it makes much sense to me.

isPC(): 0 LC os.name: linux
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke0 (Method.java)
at java.lang.reflect.Method.invoke (Method.java:255)
at au.com.foundationstone.ui.FSLauncher.main (FSLauncher.java:28)
Caused by: java.lang.ExceptionInInitializerError
at au.com.foundationstone.ui.UIUtilities.prepareLargeLabel (UIUtilities.java:222)
at au.com.foundationstone.ui.UIUtilities.prepareLargeLabel (UIUtilities.java:230)
at au.com.foundationstone.ui.panel.FSTutorPanel.<init> (FSTutorPanel.java:121)
at au.com.foundationstone.ui.panel.FSTutorPanel.getInstance (FSTutorPanel.java:188)
at au.com.foundationstone.ui.panel.FoundationStone.<init> (FoundationStone.java:120)
at au.com.foundationstone.ui.panel.FoundationStone.getInstance (FoundationStone.java:109)
at au.com.foundationstone.ui.panel.FoundationStone.main (FoundationStone.java:364)
at java.lang.reflect.Method.invoke0 (Method.java)
...2 more
Caused by: java.lang.UnsupportedOperationException
at gnu.java.awt.peer.gtk.GdkGraphicsEnvironment.getAllFonts (GdkGraphicsEnvironment.java:80)
at au.com.foundationstone.ui.NativeFontSupport.hasFontInOS (NativeFontSupport.java:53)
at au.com.foundationstone.ui.NativeFontSupport.getFont (NativeFontSupport.java:37)
at au.com.foundationstone.ui.NativeFontSupport.<clinit> (NativeFontSupport.java:23)
at au.com.foundationstone.ui.UIUtilities.prepareLargeLabel (UIUtilities.java:222)
...9 more
rbees@RBees:~/downloads/FoundationStone/FoundationStone_3.0$

There is this in the launch script. Might it help?

# foundationstone.os.name
# makes foundationstone run like it would from a Unix or Unix like shell. This can work for other OS's too.

thanks to all
 
Old 11-19-2006, 09:47 AM   #6
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 681

Original Poster
Rep: Reputation: 42
Thanks to all

Update:

I did manage to get in contact with the author and sent him to output from the shell. He reported:


>Hi
>
>I can see it's picking up gnu's java.
>
>> gnu.java.awt.peer.gtk.GdkGraphicsEnvironment.getAllFonts
>
>Suggest you get Sun's 1.5 from java.sun.com
>
>You may have to explictly set it in foundationStone.sh
>
>ie /usr/bin/java xxxxxx say.
>
>(I don't know where the installer puts it, but you'll know you have the right one if you go
>
>/usr/bin/java -version
>and it says Sun, 1.5 or something like that.
>
>Cheers,
>
>B.


How do I point the launch script to Sun's java directory. I think this is the right part of the launc script.

#!/bin/bash


cd `dirname $0`

PWD=`pwd`
export LIB_PATH=JavaSupport/Java
CLASSPATH=""
for jar in `find ${LIB_PATH} -name "*.jar"`
do
CLASSPATH=${CLASSPATH}:${PWD}/$jar
done
export CLASSPATH

launchclass=au.com.foundationstone.ui.FSLauncher


Which line would I change?


I was thinking maybe it would be better to put a system link in the system path somewhere that all the launch scripts for my java apps would find. Would that work and if so what might be the best place for it?

I do have both java 1.5.0.07 and 1.5.0.09 installed. I installed .09 via alien from the rpm on sun's site to make a deb package then installed it via Kpackage after his reply. But I still get :

# java -version
java full version "kaffe-1.4.2"

kaffe VM "1.1.7"

.............

Engine: Just-in-time v3 Version: 1.1.7 Java Version: 1.4
Heap defaults: minimum size: 5 MB, maximum size: unlimited
Stack default size: 256 KB
#

Not sure that I need to worry about this if I can use a symlink and achieve the same results.
 
Old 11-23-2006, 11:53 PM   #7
hellkid
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Hey,
Stumbled on your post while I was looking for the same answer that you are. I did some fiddling with the script file we are supposed to launch and figured out what the author was meaning about referencing the SUN java path instead of the GNU one.

Take a look at the line that reads:
java -Dfoundationstone.os.name="unix" blah blah (its the last one really, between all the comments)

What you need to do is specify the full path to the SUN java file. So, for me it became:

/usr/lib/jvm/java-1.5.0-sun/bin/java -Dfoundationstone.os.name="unix" blah blah

After this, it worked. I am running Ubuntu Dapper. I don't have my fonts setup yet but the application launched.

Hope this helps.
Later
 
Old 11-24-2006, 07:09 AM   #8
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 681

Original Poster
Rep: Reputation: 42
[QUOTE=hellkid]Hey,

Take a look at the line that reads:
java -Dfoundationstone.os.name="unix" blah blah (its the last one really, between all the comments)

I did finally get a reply from the author and that is the line he told me to edit. Now I am getting a different error.

:/$ home/rbees/downloads/FoundationStone/FoundationStone_3.0/foundationStone.sh
pwd is /home/rbees/downloads/FoundationStone/FoundationStone_3.0
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
:/$

this is my line in the launch script:

/usr/java/jre1.5.0_09/bin/java -Dfoundationstone.os.name="unix" -Dfoundationstone.hebrew.font.offset="0000" -Dmrj.version="0" -Xmx512m $launchclass &

I am not any kind of programmer and I don't know what to make of the error above. Obviously it has something to to with setting up the virtual machine, but beyond that????? I have looked through both the java and foundationStone directories and did't find anything that looked like something wrong with my path in the launch script.

So now I am at a complete loss to know what to try.
 
Old 11-24-2006, 03:36 PM   #9
hellkid
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Hi rbees,
I googled your error and found someone with a similar setup to you, the same installation procedure (RPM with Alien) and thena also the same error. I am brand new to this forum and apparently I can't post any threads that contain an outside link, so you will need to look it up yourself if you want to see it. It was on the sun java forum.

Anyway, it seems like it has something to do with your installation method. You mentioned you also have .07 installed. If you installed this differently than your .09 (ie: without RPM package) then I suggest you try launch FoundationStone with the Java path set to your .07 directory.

Hopefully this helps.
 
Old 11-26-2006, 09:52 AM   #10
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 681

Original Poster
Rep: Reputation: 42
Thumbs up

Thanks to all.

Hellkid, good catch on the install of java form rpm, converted by alien and installed by dpkg (kpackage). I do have 07 installed by the selfextracting method and I pointed the script to that install and now foundationStone runs.

I briefly looked at Sun for the thread you mentioned but didn't find it. Also noted that an account is needed to access some of the threads. I did find this link on this site though http://www.linuxquestions.org/questi...d.php?t=108638
It seams to indicate installing java in debian from the rpm is not sucessfull.

As far as posting links goes I personally use Open Office as my editor and then copy and paste into the text box.

I did need to manually edit the script file to use the TT fonts. NOT as the online help indicates that is configured from within the program it's self.

I have two different problems now.

1: I can't launch from a users account only root. The users account comes up to the splash screen and hangs. I have not searched out this problem yet.

2: The app runs in full screen only and still doesn't show the entire contents of the screen. With out being able to click the next button the program is useless. I have seen threads on this particular issue but have not searched them out yet.

If you know of links for either of these issues you might post them for those who follow.

Once again thanks Hellkid (Interesting handle for someone seeking to learn Hebrew). Did you get your font problem solved?
 
Old 11-29-2006, 10:58 PM   #11
hellkid
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Hi rbees,
Glad to hear you are getting further along with the application. Your issues now seem a little more tricky, so I thought I would describe how my app starts up to see if it hints at anything you might be experiencing.

First, I still don't have my fonts setup. I dabbled at it briefly but work has prevented me from making a serious effort.

I am able to launch the program as a regular user (haven't actually tried as root). When it launches the application's window dimensions are huge - extends beyond both ends of my screen. At first I thought it hung on the splash screen too until I realised there was a message prompt behind the splash screen that reads something like "window is wide - remember to install fonts...". Once I click OK, the splash screens goes away and I am in the application...though with no idea where to begin .

Anyway, perhaps this helps...most likely it doesn't.
Oh, and the handle is just a name that has stuck with me through the years...means nothing
 
Old 11-30-2006, 06:50 PM   #12
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 681

Original Poster
Rep: Reputation: 42
Update:

My launch problems were solved by a comp restart. I had installed some other apps and that whole thing was causing the problem.

I did still have some problems with the fonts. For some reason the app wasn't recognizing the TT fonts. So I opened the KDE Control Center and deleted them and installed the post scprit fonts instead. Now when I type in the app I get the Hebrew text like I should. However I still can not see the whole interface. Apparently the “next” “right” “wrong” buttons fall outside of my viewable area.

I sent a screen shot to the author and he sent me this:

>yep, you need 3.0.3 via the auto update...

I can't get the update feature to work. When enabled I get this:
attempting the autoUpdate...
isConnected() is false localhost: 127.0.0.1

I turned the auto update off simply because I don't like programs accessing the internet unless I tell them to. When I turn it on I get this message:
-isConnected() is false localhost: 127.0.0.1
I have tried enabling the proxy and putting my router IP in as the server and using the default port but that causes the app to hang.

I have enabled the "Automatically connect if not connected" button. No help. In fact I am not even sure that the modem works in my linux setup, but it does work in w-dozzz.

I am always connected through my local network which is connected with a cable modem through the wan port on the router. The 127.0.0.1 IP is the local IP that the comp uses to send messages to its self, I think, and may be null output too. If I am remembering what I have read correctly, but don't quote me. I don't use a proxy for any of my browsers or email engines. I don't know of any other app on this comp that doesn't access the net when it is suppose to.

I use a dhcp server, so the IP for my nic does change from time to time. Also the IP my router gets from the ISP comes via a their DHCP server and changes from time to time.

I do remember seeing a thread on this whole 127.0.0.1 vs xxx.xxx.xxx.xxx issue and apps not using the nic because of it. But I have not had time to search for it yet.

Hellkid;

I did read on the Foundation Stone site that the app needs at least 800X600 resolution to be able to see the whole interface. This relates specifically to running it on w-dozzz but I would think it applies to linux too. What distro are you running? The KDE Control Center made it easy to install the fonts. I would think that the one for Gnome would too.

As for how the app works take a look at this http://foundationstone.com.au/HtmlSu...HelpFrame.html
This information did not use to be included in the online help available in the program. When I first started using the app it took me some time to find out how to use it.

Once again

Thanks to all even if you only read this post .
 
Old 12-03-2006, 04:12 PM   #13
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 681

Original Poster
Rep: Reputation: 42
Hey

I think I am going to start a new thread because I have gotten past this being a launch issue. It seams to be an issue with the config of my comp so.

Once again thanks to all.

RBees
 
  


Reply

Tags
java


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically cast 'export LD_ASSUME_KERNEL' before an app starts tbfirefox Linux - General 1 02-01-2005 08:59 PM
Java Applet to App - Help Please redhatnoob Programming 2 05-03-2004 12:23 PM
java app flickers ianunderwood Linux - Software 1 04-11-2004 04:19 PM
java app as service SuperSadSmile Linux - General 2 12-31-2003 11:39 AM
help with running a java app Soggy Linux - Software 7 11-20-2003 07:57 PM


All times are GMT -5. The time now is 06:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration