David Lambert

Greenhorn
+ Follow
since Mar 24, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by David Lambert

Hi, I have this problem that's driving me nuts.
My code looks sort of like this:
answer = JOptionPane.showConfirmDialog(....);
if (answer == ok){
URL url =new URL(applet.getDocumentBase(),file);
AppletContext browser=applet.getAppletContext();
browser.showDocument(url,"_self");
}
My problem is that when browser.showDocument() executes, the browser
stops responding. If I comment out the call to JOptionPane all works
fine and the browser shows the requested url.
The problem does not occur with IE 5.0 but only with 6.0.
Thanks for any help.
david
20 years ago
My previous message got deleted by mistake while I was trying to edit it earlier...so I post it again just in case there is someone else with the same problem...
>Hi Greg, thanks for your reply.
>
>In my environments variables I have:
>JAVA_HOME = C:\j2sdk1.4.1_01
>ANT_HOME = C:\ant-1.5
>
>In Eclipse Window > Preferences > Ant > >Runtime
>ANT_HOME = C:\ant-1.5
>(which sets my runtime classpath to:
> C:\ant-1.5\lib\ant.jar
> C:\ant-1.5\lib\catalina-ant.jar
> C:\ant-1.5\lib\optional.jar
> C:\ant-1.5\lib\xml-apis.jar
> To this I' ve added:
> C:\j2sdk1.4.1_01\lib\tools.jar
> I' ve tried adding
> C:\j2sdk1.4.1_01\bin
> but no luck...
>
>
>In Eclipse Window > Preferences > Java >> Installed JREs:
>C:\j2sdk1.4.1_01
>
>I really cannot see what is wron
>
20 years ago
Hi Greg, thanks a lot for your time!
You are absolutely right. After checking the 'Path' variable, it turns out I didn' t have
'%JAVA_HOME%\bin' in it.
Everything works fine now.
Still don' t understand why I could use the command line to run signjar or ant tasks though...trying to find that out now.
Thanks a lot again. That was great help!
20 years ago
Hello,
I' m having a problem signing a jar with ant.
While the target works if run from the command line, when I run it from eclipse I get the following error:
[signjar] BUILD FAILED: file:C:/MyPath/build.xml:358: Execute failed: java.io.IOException: CreateProcess: jarsigner -keystore C:\storepath -storepass mypassword -keypass mykeypass -signedjar C:\signedjar.jar C:\myjar.jar myalias error=2
This is what I have in build.xml:
<signjar alias="myalias" jar="${app.name}.jar" keypass="mykeypass" keystore="${build.home}/storepath" signedjar="${build.home}/sgn${app.name}.jar" storepass="mypassword"/>
The paths and variables look fine (it works from command line...) so I don' t really know what' s wrong...
Thanks for any help!
20 years ago