This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!

Ian Hand

Greenhorn
+ Follow
since Oct 16, 2003
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 Ian Hand

Right, sorry. Guess I should have actually read that, rather than just assuming it was about offensive names.
15 years ago
Because the codebase for my app includes full stops, (eg. .co.uk), my web start cache is in a folder with full stops in its name. When I try passing the path for my .hs file to the HelpSet constructor, it dies horribly. This doesn't happen if I don't use the fully qualified URL for my codebase, but then the app can only work if the client machine knows what server I'm referring to. This kind of defeats the object of Web Start so I'd quite like to fix it! I've tried using java.net.URLEncoder.encode but of course that leaves full stops alone, no use to me at all. Can anyone help me out? I assume there must be some way around this, probably a very obvious one.
Cheers
15 years ago
I used a system property for this, this line in the resources section of my .jnlp:
<property name="webstart" value="true"/>
Then System.getProperty("webstart") will return the String "true" if you are running from web start, null otherwise. So your application can do:
if(System.getProperty("webstart") != null)
{
// web start specific behaviour
}
(you might want to check that the right value is returned, just in case someone else has set the system property.)
Dunno how robust this is, but hope it helps
[ October 16, 2003: Message edited by: Random Username ]
15 years ago