Starting application
Hi, all.
I need to create the applet for starting the application. My applications have capability to read file, browse directory, and check file info(size, creation date, how many lines). There are three different java classes which can work separate from itch other.It should be textfields where user can tape the name of the file or the name of the directory - like in Dos. I know how to lunch application through the Dos, but for now I have to lunch the same application through applet. Thanks for any help.
Mariya.
as dupontv said, you can't run nothing from an applet.... but there is a (strange) way:
keep your app running with a Socket listenning at port ??? and then make your applet to comunicate with the app trough this port.... (take a look also in RMI or signed applets...)
(this is a awful solution, but I can�t think in nothing better now :~))
Similar Messages
-
Java Web Start application failing on my user account
Hi All,
I've been tearing my hair out over this for a while and haven't been able to get anywhere wiht it. I've finally cracked and decided to post a plea for help in here.
Basically, I have a web start application that will not start under my user profile but will under a new account I created. If I try and start it from the terminal with javaws I get "Bus Error" and that's all. Double clicking it gives me a crash dialoge box and the details can be seen here:
http://pastebin.com/m77b1111f
As I said before, running it in the other account works fine as does "sudo javaws /path/to/app.jnlp" but I really don't want to have to do that every single time.
I've deleted the JavaCache folder as well as any ~/Library/Preferences/java.plist all without any joy. Also, I'd like to add that there are a number of other Web Start apps that run without any problems.
Any ideas?Thing is, if there was corruption of something that was system wide, it wouldn't work under a different profile, right?
Unpredictable as to how lomg it would work on a new account.
Is this usually the case for a safe boot?
Yes, it runs fsck_hfs -fy on the whole drive, dumps several caches & so on, the next boot will also take longer than usual as it rebuilds caches & so on. -
Java web start application runs too slow...
Hello,
I am new to Java Web Start. I have created a java web start application and when i enable web start from local Execution, then it works perfectly well. But when i upload it on server and then download the application, then it is too too slow...i mean it takes minutes to get the output on clicking some button....my jnlp file is as under:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="http://(web server code base)" href="launch.jnlp" spec="1.0+">
<information>
<title>ERD</title>
<vendor>Deepika Gohil</vendor>
<homepage href="http://appframework.dev.java.net"/>
<description>A simple java desktop application based on Swing Application Framework</description>
<description kind="short">ER Deign Tools</description>
</information>
<update check="always"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="ERD_1_2.jar" main="true"/>
<jar href="lib/appframework-1.0.3.jar"/>
<jar href="lib/swing-worker-1.1.jar"/>
<jar href="lib/jaxb-impl.jar"/>
<jar href="lib/jaxb-xjc.jar"/>
<jar href="lib/jaxb1-impl.jar"/>
<jar href="lib/activation.jar"/>
<jar href="lib/jaxb-api.jar"/>
<jar href="lib/jsr173_api.jar"/>
<jar href="lib/ant-contrib-1.0b3.jar"/>
<jar href="lib/jaxb-impl.jar"/>
<jar href="lib/jaxb-xjc.jar"/>
<jar href="lib/FastInfoset.jar"/>
<jar href="lib/gmbal-api-only.jar"/>
<jar href="lib/http.jar"/>
<jar href="lib/jaxws-rt.jar"/>
<jar href="lib/jaxws-tools.jar"/>
<jar href="lib/management-api.jar"/>
<jar href="lib/mimepull.jar"/>
<jar href="lib/policy.jar"/>
<jar href="lib/saaj-impl.jar"/>
<jar href="lib/stax-ex.jar"/>
<jar href="lib/streambuffer.jar"/>
<jar href="lib/woodstox.jar"/>
<jar href="lib/jaxws-api.jar"/>
<jar href="lib/jsr181-api.jar"/>
<jar href="lib/jsr250-api.jar"/>
<jar href="lib/saaj-api.jar"/>
<jar href="lib/activation.jar"/>
<jar href="lib/jaxb-api.jar"/>
<jar href="lib/jsr173_api.jar"/>
</resources>
<application-desc main-class="erd.screen1">
</application-desc>
</jnlp>
I dont understand the reason. Could you please help me out.
Thank you,
Deepika Gohil.Check your web server's access logs to see how many requests web start is sending for each jar. After you've loaded the application the first time, for each subsequent launch, if you've got everything configured right, you should only see requests for the JNLP file and maybe some gifs because web start should load everything else out of the cache (if you're using the version-based download protocol). Or if you're using the basic download protocol, then you might see requests for each jar file, but even in this case, if your web server is prepared to evaluate the last-updated attribute for each jar request and for jars that have not changed, respond with no actual payload and a header value of Not-Modified, then that should run almost as fast.
You might also want to consider changing the "check" attribute of the "update" element from "always" to "background" for a couple of reasons. It should allow your app to start sooner (but this means that you might have to launch once or twice after an update is applied to the web server before the update shows up on the workstation). Also, my impression is that "always" is broken and prevents web start from ever checking to see if your jnlp file has been updated if you launch your app from a web start shortcut - launching from a browser is less likely to have this problem, depending on how often your browser is configured to check for updated resources. -
Java Web Start application doesn't run in Tomcat
I successfully did a Java Web Start example for me to learn then I tried another one where I encountered an error:
This is what Tomcat 6.0.18 says. The deploy is successful but when I try to run the web start application
with this htmlcode
<A href="http://localhost:8080/ConvertorValutar/app/launch.jnlp">I get this error witch leads me to think that it can't find the jar correct ?
type Status report
message /convertorvalutar/
description The requested resource (/convertorvalutar/) is not available.Appendix:
This is how I am doing the JAR
jar cfvm convertorvalutar.jar myManifest2.mf Java*.class IRata*.class The myManifest2.mf is
Main-class: JavaWebStart_Convertor witch is the main class
This way I am doing the WAR:
del *.war /F /Q
jar cfv convertorvalutar.war app/* WEb-INF/*This is the correct directory structure
│ faWar.bat
│ convertorvalutar.war
│
├───app
│ ConvertorValutar.jar
│ launch.jnlp
│
└───WEB-INF
│ web.xml
│
└───lib
jnlp-servlet.jarThis is the web.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- Standard Action Servlet Configuration (with debugging) -->
<web-app>
<servlet>
<servlet-name>JnlpDownloadServlet</servlet-name>
<servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JnlpDownloadServlet</servlet-name>
<url-pattern>*.jnlp</url-pattern>
</servlet-mapping>
</web-app>
</web-app>This is the jnlp:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://localhost:8080/convertorvalutar/app">
<information>
<title>Convertor Valutar</title>
<vendor>remus.dragos</vendor>
<description>Simple Java Web Start Example</description>
</information>
<resources>
<j2se version="1.5+"/>
<jar href="ConvertorValutar.jar"/>
</resources>
<application-desc main-class="JavaWebStart_Convertor"/>
</jnlp>Where is the problem?
Edited by: remus.dragos on Dec 9, 2008 7:14 PMI did checked the names again and I found that the makeJar.bat had an "issue".
It missed the del *.jar and I had 2 uppercase letters like ConvertorValutar, instead of convertorvalutar.jar.
After that I rebuild the war and deployed and it works :)
Thanks. -
Java Web Start 1.6 fails to start application without Java Consol on Vista
Hi All,
I've faced with problem related to starting my application in IE 7 on Vista SP1 using Java Web Start (JRE 1.6.0_12 and 1.6.0_13). I suppose that issue appears after 11th update of JRE 1.6 since it works fine before.
There were set settings to indicate initial and maximal size of the Java heap in the JNLP file.
Application consist of 2 JAR files and they are signed with the same certificate.
When user tried to start application there is no any activity after accepting certificate. After starting application javaw.exe just disappeared from processes list without any message or error.
When I changed default setting in Java Control Panel to show Java Console, I noticed that the application began to start. But it's not a solution of the issue, since all customers cannot be required to turn on Java console.
I believe this is a bug in JRE as the application starts with Java console and doesn't without it.
When I browsed the web looking for the solution or an advice I found Release notes for 1.6.0_014 where it was said that 6u14 Java Web Start failed to launch and notifies that JARs were not signed, if an insecure Java system property was specified in a sandbox JNLP file. In spite of that 14th updated wasn't used and there was no notification I tried to start application without settings for the Java heap and it worked.
Could someone help me with advice, since the application cannot be started with default heap size settings.
Thanks in advance.
Edited by: vovanst on Jul 28, 2009 8:06 AMHi,
as the 6u15 just arrived and the above mentioned bug should've been fixed (though I was unable to verify through the release notes), the error is still in there.
We have no timestamped jars, neither ours nor the bouncy castle ones, all certs are valid, ours is self signed.
6u13 runs, 6u14/6u15 won't.
I followed the instructions here: http://bouncycastle.org/devmailarchive/msg10415.html to no avail.
The bcprov.jar is wrapped in its own jnlp and referred as extension from the "main" jnlp.
The interesting parts of the stack trace are these:
Caused by (via getCause): java.lang.SecurityException: JCE cannot authenticate the provider BC
at javax.crypto.Cipher.getInstance(DashoA13*..)
at javax.crypto.Cipher.getInstance(DashoA13*..)
Caused by (via getCause): java.util.jar.JarException: Cannot parse https://localhost:8443/deploy/bcprov.jar
at javax.crypto.SunJCE_c.a(DashoA13*..)
at javax.crypto.SunJCE_b.b(DashoA13*..)
at javax.crypto.SunJCE_b.a(DashoA13*..)
at javax.crypto.Cipher.getInstance(DashoA13*..)
at javax.crypto.Cipher.getInstance(DashoA13*..)
For me it seems there's a problem with resolving the url of the bcprov.jar, which would explain the lack of a delay which normally occurs when JCE verifies the signature of the bcprov provider classes. The error pops up almost instantly.
I'm clueless what to do now. Did Sun really achieve to completely destroy JCE provider functionality in Javaws, forcing us to use an alternative implementation?
Patric -
Unable to launch web start application
Hi Please can any one help me.
I have a problem in launching the web start application.
As i am the beginner i need help from you people.
I have created three class files as below.
Aeon_PManager.java
SimpleSerial.java
SimpleSerialNative.java.
We have to create a SimpleSerialNative.dll in the same folder where we are saving all the class files.
The jnlp file that i have written is as follows:
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Aeon HHBM Manager Application -->
<jnlp spec="1.0+" codebase="http://zycomm:8080" href="Aeon.jnlp">
<information>
<title>Aeon HHBM Manager</title>
<vendor>ME</vendor>
<description>Aeon HHBM Manager</description>
</information>
<offline_allowed/>
<resources>
<j2se version="1.4+"/>
<jar eager="true" href="SimpleSerialNative.jar" main="true"/>
<jar href="lib/Aeon_PManger.jar"/>
<jar href="lib/simpleSerialNative.jar"/>
<jar href="lib/simpleSerialNatived.jar"/>
<jar href="lib/simpleSerial.jar"/>
</resources>
<application-desc main-class="Aeon_PManager.Main" />
<component-desc/>
</jnlp>
I am using Tomact6.0 server.
I am saving the jnlp file and jar files in the path below
tomcat6.0/webapps/root
Is it wrong to do so. If it is then what should i do to launch the application.
Is it necessary for me to create jar files for all classes seperately.
should i create jar file for simpleSerialNative.dll also.
These are the error messages that I am getting:
In general tab:
An error occured while launching/running the application
Title:Aeon HHBM Manger
Vendor:Me
Category:DownloadError
Unable to load resource http://zycomm:8080/Aeon_PManager.jar
Exception tab:
jnlp exception[category download error: exception: java io.ioexception:http response 404 launchdesc:null]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unkown Source)
at com.sun.javaws.cache.DownloadProtocol.getDownload(Unkown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unkown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unkown Source)
at com.sun.javaws.Launcher.downloadResources(Unkown Source)
at com.sun.javaws.Launcher.handleApplicationDescUunkown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unkown Source)
at com.sun.javaws.Launcher.Run(Unkown Source)
at java.lang.Thread.run(Unkown Source)
Wrapped Exception Tab
java io.IOexception:HTTP response 404
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unkown Source)
at com.sun.javaws.cache.DownloadProtocol.getDownload(Unkown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unkown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unkown Source)
at com.sun.javaws.Launcher.downloadResources(Unkown Source)
at com.sun.javaws.Launcher.handleApplicationDescUunkown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unkown Source)
at com.sun.javaws.Launcher.Run(Unkown Source)
at java.lang.Thread.run(Unkown Source)1) I totally agree with Andrew
2) You have 3 classes and 5 jars, how's that?
3) Either you don't respect naming conventions and have uppercase packages or you don't know the difference between a jar and a package. Are you really a Java programmer?
4) You jnlp names out lib/Aeon_PManger.jar while your stack trace claims not to find http://zycomm:8080/Aeon_PManager.jar (the lib path is missing and Manager is not missing any 'a'). How badly did you mess pasting?
5) You're asking if you should package simpleSerialNative.dll without giving out any detail, do you suppose we have a universal knowledge of all existing APIs? Anyway you already got an answer to this in your other post.
6) You're a lucky man, 'cause I really love dukes, so I'll tell you what you should do (and I expect to give out 10 dukes on both posts): have a single jar within everything in it and execute it as stand alone app. Command: *java -jar YourJar.jar* (if you declare main class in manifest), or *java -cp YourJar.jar YourClassFullName*. Once you get it working you'll be ready for JWS deploy issues. If you can't get even there, take this advice: give up java (and maybe the all programming staff)!
Bye. -
OBIEE 11g- unable to start application server
Dear All,
I have recently installed OBIEE 11g 11.1.1.6.0 for the first time (enterprise install)
am able to login to anaytics page and create reports, but Iam not able to connect to enterprise manger , console.
Going through various posts, i came to know i should start Application server.
which i was not able to. was getting error as
'unable to get file lock will retry'.
I tried deleting
Navigate to the path : <OBIEE HOME>/C:\Middleware\user_projects\domains\bifoundation_domain\servers\AdminServer\tmp
“AdminServer.lok” file.
it still did not start
I try doing the same for “bi_server1″ lock file. but am not able to delete this file.
It says its in use. but i did not find any Java process running.
Can you please help. how can i start my Application server on windows OS.
Appreciate your help.
thanks in advance.
AchalaFirstly we have shutdown the application for OS activity for creating mount point(related to Business)
then we where trying to start the application all the work process are running with semaphore 50 , there no such error mesg ,just the work process are hang at running state with user SAPSYS
the i have shutdown the application and clean the ipc and again i restarted the app still the same issue
Hope u understand
Thank you
Haroon -
Essbase Dimension build error and Unable to Stop/Start Application
Hi All,
I am trying to build the dimendion in the ASO application it is throwing the Error meaasage " Dimension Biuld failed , ther may be problem in allocating memory".
While i am trying to and Start/Stop my respective Application it is throwing the below error meaasge
I tried to debug this issue by checking the Locked objects, and asked my Admin to close my sessions forcebully if any running and also checking all rules files . But i didn't get any clue/solution from them.
Please help me out from this issue
***ess-dev.ASOAPP Stop application April 15, 2009 4:15:08 PM IST Failed***
***Error: 1013018 Cannot unload database [Sample] while user [ASDF] is performing database operation. Wait for user [ASDF] to complete the operation, or ask the user to abort it. Log out all users and then unload the database.***
*** MaxL Command April 15, 2009 4:40:52 PM IST***
***Error: 1053012: Object [Sample] is locked by user [ASDF]***
***Error: 1013100: User [ASDF] is Active on Database [Sample]***
***Error: 1013132: Cannot build dimensions. There are other active users on database [Sample]***
***Error: 1241101: Unexpected Essbase error 1013132***
***Error: 1053013: Object [Sample] unlocked by user [ASDF]***
*** MaxL Command April 15, 2009 4:43:28 PM IST***
***Error: 1270040: Data load buffer [2] does not exist***
RegardsHi,
Thanks for your answer friend. My admin has successfully killed my session forcebully. And he doubted that i may not have enough rights to Stop/Start application and he provided me the required rights. After that also the error is repeating as below. we two are not getting where we went wrong.
ss-dev.ASOAPP Stop application April 15, 2009 8:19:35 PM IST Failed
Error: 1013018 Cannot unload database [Sample] while user [ASDF] is performing database operation. Wait for user [ASDF] to complete the operation, or ask the user to abort it. Log out all users and then unload the database.
Help me out from this issue -
My Mac Pro takes long time to load mail and start applications
My 13-inch early 2011 Mac Pro runs very slowly, particularly when downloading Apple Mail and when starting applications.
Here is what I get with EtreCheck:
EtreCheck version: 2.0.11 (98)
Report generated November 6, 2014 at 7:44:23 AM CST
Hardware Information: ℹ️
MacBook Pro (13-inch, Early 2011) (Verified)
MacBook Pro - model: MacBookPro8,1
1 2.7 GHz Intel Core i7 CPU: 2-core
4 GB RAM Upgradeable
BANK 0/DIMM0
2 GB DDR3 1333 MHz ok
BANK 1/DIMM0
2 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1280 x 800
System Software: ℹ️
OS X 10.9.4 (13E28) - Uptime: 4 days 17:41:5
Disk Information: ℹ️
TOSHIBA MK5065GSXF disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / [Startup]: 499.25 GB (340.75 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
HL-DT-ST DVDRW GS31N
USB Information: ℹ️
Apple Computer, Inc. IR Receiver
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. FaceTime HD Camera (Built-in)
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/System/Library/Extensions
[not loaded] com.cisco.nke.ipsec (2.0.0) Support
[not loaded] com.seagate.driver.PowSecDriverCore (5.1.1) Support
/System/Library/Extensions/Seagate Storage Driver.kext/Contents/PlugIns
[not loaded] com.seagate.driver.PowSecLeafDriver_10_4 (5.1.1) Support
[not loaded] com.seagate.driver.PowSecLeafDriver_10_5 (5.1.1) Support
[not loaded] com.seagate.driver.SeagateDriveIcons (5.1.1) Support
Startup Items: ℹ️
CiscoVPN: Path: /System/Library/StartupItems/CiscoVPN
Startup items are obsolete and will not work in future versions of OS X
Problem System Launch Daemons: ℹ️
[failed] com.apple.AOSNotificationOSX.plist
[failed] com.apple.wdhelper.plist
Launch Agents: ℹ️
[running] com.epson.epw.agent.plist Support
[loaded] com.oracle.java.Java-Updater.plist Support
[running] com.seagate.SeagateStorageGauge.plist Support
[loaded] org.macosforge.xquartz.startx.plist Support
Launch Daemons: ℹ️
[failed] com.adobe.fpsaud.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[loaded] com.oracle.java.Helper-Tool.plist Support
[loaded] com.oracle.java.JavaUpdateHelper.plist Support
[loaded] org.macosforge.xquartz.privileged_startx.plist Support
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist Support
[loaded] com.google.keystone.agent.plist Support
[running] com.memeo.Memeod.plist Support
[running] com.spotify.webhelper.plist Support
User Login Items: ℹ️
Garmin Express Service Application (/Applications/Garmin Express.app/Contents/Library/LoginItems/Garmin Express Service.app)
macfusionAgent UNKNOWN (missing value)
iTunesHelper UNKNOWNHidden (missing value)
AdobeResourceSynchronizer ApplicationHidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
Dropbox Application (/Applications/Dropbox.app)
Spotify ApplicationHidden (/Applications/Spotify.app)
Google Drive Application (/Applications/Google Drive.app)
Activity Monitor Application (/Applications/Utilities/Activity Monitor.app)
VidyoDesktop ApplicationHidden (/Applications/Vidyo/Vidyo Desktop/VidyoDesktop.app)
Internet Plug-ins: ℹ️
JavaAppletPlugin: Version: Java 7 Update 67 Check version
FlashPlayer-10.6: Version: 15.0.0.189 - SDK 10.6 Support
Default Browser: Version: 537 - SDK 10.9
AdobePDFViewerNPAPI: Version: 10.1.12 Support
AdobePDFViewer: Version: 10.1.12 Support
Flash Player: Version: 15.0.0.189 - SDK 10.6 Support
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.4.5 - SDK 10.6 Support
Silverlight: Version: 5.1.20513.0 - SDK 10.6 Support
MeetingJoinPlugin: Version: (null) - SDK 10.6 Support
iPhotoPhotocast: Version: 7.0 - SDK 10.8
User Internet Plug-ins: ℹ️
RealPlayer Plugin: Version: (null) Support
Dashlane: Version: Dashlane 1.0.0 - SDK 10.10 Support
Safari Extensions: ℹ️
Dashlane
3rd Party Preference Panes: ℹ️
Flash Player Support
FUSE for OS X (OSXFUSE) Support
Java Support
TeXDistPrefPane Support
Time Machine: ℹ️
Skip System Files: NO
Auto backup: NO - Auto backup turned off
Destinations:
FreeAgent GoFlex Drive [Local]
Total size: 1.00 TB
Total number of backups: 28
Oldest backup: 2012-01-29 05:38:02 +0000
Last backup: 2014-10-05 11:34:28 +0000
Size of backup disk: Excellent
Backup size 1.00 TB > (Disk size 0 B X 3)
Top Processes by CPU: ℹ️
2% WindowServer
1% loginwindow
1% PluginProcess
1% Microsoft PowerPoint
1% opendirectoryd
Top Processes by Memory: ℹ️
223 MB Mail
69 MB WindowServer
64 MB Memeod
52 MB mds_stores
52 MB systemstats
Virtual Memory Information: ℹ️
26 MB Free RAM
933 MB Active RAM
916 MB Inactive RAM
1.08 GB Wired RAM
10.18 GB Page-ins
526 MB Page-outsCheck out ds store's excellent user tip - Why is my computer slow?
Even a full one minute can be too long, depending on your login items...
Clinton -
Rmi remote reference lookup very slow in web start application
I have a little problem with the RMI communication in a web start test application.
It is a very simple program in which the client calls a remote object that returns a String.
Everything seems to be working fine when i'm running/debugging the client app in eclipse, but when i package my client project into a jar file and run it as a web start application (i'm providing the jnlp on a local webserver) the remote reference lookup takes about 15 seconds.
basically, what my client does is this:
Registry registry = LocateRegistry.getRegistry(address);
ServerTransaction st= (ServerTransaction) registry.lookup(name);
String result = st.test();
The server code looks like this:
String name = "ServerTransaction";
ServerTransaction engine = new DefaultServerTransaction();
ServerTransaction stub = (ServerTransaction) UnicastRemoteObject.exportObject(engine, 0);
Registry registry = LocateRegistry.createRegistry(Registry.REGISTRY_PORT);
registry.rebind(name, stub);
The server runs as a normal stand alone java application on my local machine as well.
And here the content of the jnlp file for the client application:
<resources>
<jar href="WSTest.jar"/>
<jar href="WSTestServer.jar"/>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<property name="serverAddress" value="127.0.0.1" />
</resources>
<security>
<all-permissions/>
</security>
<application-desc main-class="test.WSTest"/>
As i said, the whole thing works when run as a normal java application as well as with web start, with the difference that the remote reference lookup takes about 15 seconds with web start.
Can anyone tell me how i could go about this?Meanwhile, i tried the same thing at home on my xp machine (i use vista at work), and even though my test at home basically does the same thing (invoking a simple remote method that just returns "hello world") it worked pretty fast, contary to the 15 second hang on vista.
So i can't really say where the problem is...
I also found these two rmi properties
sun.rmi.transport.connectionTimeout (1.1.6 and later)
The value of this property represents the period (in milliseconds) for which socket connections may reside in an "unused" state, before the Java RMI runtime will allow those connections to be freed (closed). The default value is 15000 milliseconds (15 seconds).
and
sun.rmi.transport.proxy.connectTimeout (1.1 and later)
The value of this property represents the maximum length of time (in milliseconds) that the Java RMI runtime will wait for a connection attempt (createSocket) to complete, before attempting to contact the server using HTTP. This property is only used when the http.proxyHost property is set and the value of java.rmi.server.disableHttp is false. The default value is 15000 milliseconds (15 seconds).
Hoping it would help (totally clueless) i tried to set these as system properties via System.setProperty(...) to a lower value (if that even works this was - please correct me if i am totally wrong here) but it didn't help. -
Can't paste text in a Web-started application
I am facing a problem with a limited (but growing) number of users: they are
unable to paste a block of text into a text field. Apparently the problem
occurs in Windows 7 only that seems to isolate the Web-start application into
a sandbox. What is strange is that the application is signed and requires
full access to resources. Since I am not a windows 7 user I can't reproduce
the problem, also with other Windows 7 users things work fine, what's curious.
I can't determine if the program would also be trapped in other I/O operation
cause registration (for which paste is needed) is first step and user can't
proceed any more.
Did anybody else have incur in the same problem. Do anybody know what user
shall do to unlock the paste operation?
I am sure there is some solution otherwise any RIA application deployed with
Java Web Start would be excluded by all future (Windows 7) market, but I don't
know what to tell my user to proceed.
Thanks very much to whoever can help.Andrew,
I think I spotted the problem, but unhappily got no confirmation from user (despite my kind request to perform a new test with modified code). The issue is probably not related Windows 7 but to the kind of mail program is used to "cut" the text. Some mail program encode it as plain text, others as rich text and still others (like Firebird I use) as html. I perceived this using your code and I was surprised (I was expecting text/plain). This explains why only certain users report the problem.
What is strange is that Java, under JNLP is unable to convert text/xxxx to text/plain when pasting in a text component, as it does if desktop-started. I am already sure it is text/xxxx because in a previous situation I asked user to perform a paste into a notepad and it worked fine, it doesn't paste only into a JText component. Probably when Java is not webstart-launched it uses native conversion and when web-started it considers MIME type. If not plain text returns an empty string.
I basically used your code, but considered only first MIME type and, if not text, I reject paste and ask user to go though a plain text editor. In my case it does not make sense trying to manage HTML or RTF: that would be an overkill.
Let's wait and see next case, anyway the inability to paste text/xxxx into text components this is a considerable limitation of web-started programs.
The good news I discovered during tests is that (apart new logo), deployment has really improved, at least timestamp is correctly handled. Until few months ago I had to start the application 2-3 times to have jnlp perceived that some jar were updated. -
Singleton web start application 1.4 ?
is there a way to configure a web start application to be singleton in the JNLP1.4 ?
You can do this in 1.5. For ealier version you will need to do it yourself by using JNI to switch to the singleton. Or you can open a ServerSocket and open a port and if that port is in use tell the user that they need to switch to the already running application.
-
Error: Unable to start Application
I wanted to convert powerpoint slides to Authorware XML.
Therefore, I have started a new application. I clicked on
Commands>Converters>Microsoft Powerpoint to authorware XML.
Everything went well except when I clicked convert. After the
slides have finish converting, a message box will appear with the
following error message: 'Unable to start application. The
Microsoft Virtual Machine cannot be found.Class not registered.'
Can someone please help me with this?"SitiHasmah" <[email protected]> wrote in
message
news:gaqh94$7g5$[email protected]..
>I wanted to convert powerpoint slides to Authorware XML.
Therefore, I have
> started a new application. I clicked on
Commands>Converters>Microsoft
> Powerpoint to authorware XML. Everything went well
except when I clicked
> convert. After the slides have finish converting, a
message box will
> appear
> with the following error message: 'Unable to start
application. The
> Microsoft
> Virtual Machine cannot be found.Class not registered.'
>
> Can someone please help me with this?
>
Adobe has a detailed article that describes the use of the
PowerPoint
converter, and also tells you how to remedy the error you
encountered:-
http://www.adobe.com/devnet/authorware/articles/aw_powerpoint_print.html
Steve
http://twitter.com/Stevehoward999
Adobe Community Expert: eLearning, Mobile and Devices
European eLearning Summit - EeLS
Adobe-sponsored eLearning conference.
http://www.elearningsummit.eu -
How to disable the starting application on the MPB
hi guys,
Please help me on how to disable the automaic starting application on my MPBSystem Preferences / Users & Groups / Startup items button.
Delete those you don't want to launch at start up. -
Probleming when starting Application Sharing
Hello,
when I open the CLP and want to start Application Sharing I have to select a user from my contact list first (otherwise I get a message to do so). But after selecting an application to share the user is still not invated and I have to select him over the <i>Contacts</i> tab again. Does anybody have the same problem or know help?
Kind regards,
DominikHi Dominik,
Check whether RTC Services has been activated.
Check whether you have completed the steps mentioned in the help file below..
http://help.sap.com/saphelp_nw04/helpdata/en/ba/7996492eca44fa84af6e235d883041/content.htm
Hope this helps.
Regards,
venkat.
[Reward points for useful answers] -
Erro message when starting application
I receive an error message when trying to start Flash Professional CC. It states "unable to start application correctly (0xc000007b). How do you resolve this?
http://www.anamericanquest.com/knowledge-base/adobe-photoshop/a-fix-for-the-0xc000007b-err or-for-adobe-programs/
Maybe you are looking for
-
Cinema HD Display no longer comes on immediatley when G5 turned on
My 23" Cinema HD display no longer comes on immediately when I turn my computer on. The screen stays blank for a few minutes, until I press a button on the keyboard. When the screen finally comes on, the set up for a blue tooth keyboard is displayed.
-
Multiple Feedback Messages in Quiz Results
Hello Everyone, I am sure I have seen the answer here somewhere, but I cannot find it now. So, here is my situation.... I am using Captivate 5.5 I have a 30 question quiz that covers 5 different topics. I want the results page to give feedback speci
-
Duties are not posted in RG23A
Dear all , We have made GRN but Duties are not posted in RG23A . What may be the Possible reasons pl guide
-
Hi , Can any one of you help me out with the patch details required for Japan localization.Is there any mandatory patch for Japan localization of Oracle Financials for the 11.10.2 version? if so please let me know the patch details No 2 Are there any
-
Exchange rate parallel currency
We have defined group currency as USD. The company currency is UYU. The currency exchange rate is updated from USD to UYU -direct quotation method-. Is it necessary to update the exchange rate from UYU to USD with direct quotation method for the grou