Cannot run java application in Win XP
I worte a java application(a Swing app), I test it and run under win NT, it works fine for me.
Then I recompile it in my WinXP using j2sdk1.4.1_02, run it in a command prompt, but it does NOT start up the application, I check the window task manager, a java.exe already startup and it eat up 100% CPU of my XP, but the application never been startup.
My Swing application is not a JApplet but a JFrame.
Does anyone have the similiar problem?
Thx in advance
Henry
Try adjusting your path settings to stop using the MS VM (did you recently use win update?):
My Computer->Properties -> Advanced -> Environment Variables
System Variables -> "Path"
If it currently starts with:
%SystemRoot%\system32;...
change it to:
.;%JAVA_HOME%\bin;%SystemRoot%\system32;...
If you haven't set JAVA_HOME, create a new variable like:
JAVA_HOME = C:\j2sdk1.4.1_02
Note that using the ".;" before path makes the current dir's executables take prevalence over a same-named executable in a subsequent path.
Putting "%JAVA_HOME%\bin" before "%SystemRoot%\system32" makes certain that the current java.exe gets used (not Micro$oft's java.exe)
Try it, hope it helps,
Georg.
Similar Messages
-
Steps involved in writing java application on win CE
I want to develop a java application in win CE platform for a handheld device.
1. What are all the steps involved.
2. Is there any simulator available for win CE so that I can run my java application.
Advance thanks,
Regards,
Balasubramaniam.K.R
[email protected]The way I developed my first app for the Compaq iPAQ
1. Install PersonalJava
2. Build app using AWT classes only (although I think SWING can be used)
3. Screen size 240 x 295 (thats what I used)
4. Compile and run on PC
5. Move to PPC (fingers crossed)
6. You may want to add an app.LNK file (kinda like a *.bat file) to setup classpath and file args
Sun has a compatibility suite you can run against your app to make sure it is PJava compliant. http://java.sun.com/products/personaljava/javacheck.html
Also make sure you don't use classes/methods that aren't supported
There is a PJava emulkation environment, but I never used it.
http://java.sun.com/products/personaljava/pj-emulation.html
...good luck -
Urgent! Cannot run java programme. Pls help!
1st question:
I am using JDK 1.3.1_03 on Win2K Server. When I have compiled the java applications, I try to use
"java <application name>" to run the programme, but an error message "Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object" come up on the screen. Why is it so? It run normally in the past.
I have upgraded Windows2K once using the Win2K Server CD recently, is it the cause of the problem?
How can I solve it? Please help! Thank you!
2nd question:
I have installed JDK1.4 Final version recently. However, after I have uninstalled it, it still appear in the Add/Remove Programme list in the control panel. I have tried to install another version of JDK, see if it would replace the JDK1.4,
but it failed. Why is it so? Now when I go to some websites designed by javascript, the Internet Explorer suddenly closed by itself. How can I solve the problem? Please help! Thank you!Hi,
I got the same problem, 1st question, running the application on win NT. Is there anybady there who can help us!!!?????????? -
Compiling java code from a running java application
How does compiling of java code from a running java application work?
I found a class: com.sun.tools.apt.main.JavaCompiler
but cannot find any documentation of how this class works.How does compiling of java code from a running java
application work?Probably most reliably using Runtime.exec().
I found a class:
com.sun.tools.apt.main.JavaCompiler
but cannot find any documentation of how this class
works.For a purpose. You are not supposed to use this class. With the next JRE release or implementation, it might not exist anymore - it's not part of the standard API. -
Cannot Launch Java Application
I have installed Leopard on my PowerBook and everything seems to be working ok - except I receive an error message box on my screen - Titled Cannot Launch Java Application and in the box it says
"Uncaught exception in main
method:java.lang.NoSuchMethodError:javax.security.sasl.Sasl.setSasIServerFactory (Ljavax/security/sasl/SasIServerFactor;)V" I click the quit button and the message goes away for a minute and pops back up.
I am not aware of any Java Application that is running. In fact it is always on the screen - even when no application is running. I have repaired permissions and restarted several times. It won't go away. It doesn't seem to interfere with anything - it's just annoying to have it always on my desk top. Anyone have any suggestions or experience this problem.
JaneAfter seeing everyone's responses here, it's pretty clear that there's little rhyme or reason to our fixes.
If mine worked, it wouldn't have come back.
If the font thing worked, it would've worked for me (it didn't).
If any of these worked, Jane's would be fixed (I'm assuming it isn't, yet...).
Sounds like a Leopard glitch. Or, we're all running a certain program, my guess is most likely that start at startup, and that's triggering the thing.
My computer starts up with Butler, Quicksilver, and Yojimbo this whole time. Anyone else?
In the meantime, I'm going to shut these off and see if it still happens. -
How do i run java application on IIS
Hi,
Can I run java application on IIS(Internet information Server)?
If yes, How do i do that?
My java application contains JSP,Servlets and EJB.
To run java application on IIS which plug in should i use.
Can anybody help me This is urgent...........
ThanxYou can try using Macromedia JRUN version 4. Any of the version will have an ISAPI filter which you can add to the IIS site of your JSP/Servlet.
The JRUN ISAPI filter will establish connection to the JRUN proxy listener on a port. This port is called proxy listener port. Basically once you install the ISAPI, it will have config file called jrun.ini
Check for the ProxyPort entry in jrun.ini (or something like this - sorry, I can't remember the exact entry). It should match to the proxy listener port where of the server where your JSP/Servlet is intalled.
Good luck ! -
How do I run java application on IIS server
Hi,
Can I run java application on IIS(Internet information Server)?
If yes, How do i do that?
My java application contains JSP,Servlets and EJB.
To run java application on IIS which plug in should i use.
Can anybody help me This is urgent...........
ThanxHi
Check this article on JGuru. It explains how to use Tomcat together with IIS.
http://www.jguru.com/faq/view.jsp?EID=776546
If you also need to use EJB's you probably also want to have a JBoss installed - check www.jboss.org
/Peter -
How do i run java application in IIS
Hi,
Can I run java application on IIS(Internet information Server)?
If yes, How do i do that?
My java application contains JSP,Servlets and EJB.
To run java application on IIS which plug in should i use.
Can anybody help me This is urgent...........
ThanxCan i use EJB components in it?Yes, you can use EJB components. IIS uses Tomcat as a plugin and Tomcats feeds IIS with HTML code. Tomcat performes all the JAVA work including EJB. This links shows you how to install it:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
Shoud be the same for version 4.1 -
Error while running Java Application as NT Service using INSTSRV
Hi,
I am trying to run Java Application as an NT Service using Instsrv.But when i start the service It works fine.when i stop the service it does not stop and it continues to run the application.When i uninstall the service It still executes.When i reboot my machine it stops .Is there any solutions for this.Any help is greatly appreciated.
Thanks.I actually had similar situation. I used autoexnt.ext tool (it creats a service that can be called when rebooting) to start a batch file which in turn run a java program. After the program starts, it can only be stopped through Task Manager or Ctrl-C at the dos window (it creats a dos window) or close the window directly. Stopping the service has nothing to do with the program. I feel this is reasonable because the only function of the service here is to start the application. After that the service does not (very likely) have any connection with the program so whatever you do with the service will not affect the program itself. I wonnder if you are in the same situation.
PC -
JVM Error while running java application through Java Webstart
Hi All,
While running java application through Webstart, we got the following error log and application is not running. I am not sure why this is happened? Can anyone help me out to resolve this problem?
Help Regarding this will be highly appreciated.
Thanks In advance.
Bala
Error in Log File:
# An unexpected error has been detected by HotSpot Virtual Machine:
# Internal Error (53545542324F5554494E45530E435050008C), pid=684, tid=9424
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
--------------- T H R E A D ---------------
Current thread (0x00345a60): JavaThread [_thread_in_vm, id=9424]
Stack: [0x00030000,0x00070000), sp=0x0006f9a4, free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x12430d]
V [jvm.dll+0x6366e]
V [jvm.dll+0x636a3]
V [jvm.dll+0x10073c]
V [jvm.dll+0x7859b]
V [jvm.dll+0x919fc]
C [javaw.exe+0x2120]
C [javaw.exe+0x11bb]
C [javaw.exe+0x3151]
C [kernel32.dll+0x123e5]
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
Other Threads:
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 2304K, used 42K [0x02a60000, 0x02cd0000, 0x051c0000)
eden space 2112K, 2% used [0x02a60000, 0x02a6a908, 0x02c70000)
from space 192K, 0% used [0x02c70000, 0x02c70000, 0x02ca0000)
to space 192K, 0% used [0x02ca0000, 0x02ca0000, 0x02cd0000)
tenured generation total 30272K, used 0K [0x051c0000, 0x06f50000, 0x22a60000)
the space 30272K, 0% used [0x051c0000, 0x051c0000, 0x051c0200, 0x06f50000)
compacting perm gen total 8192K, used 409K [0x22a60000, 0x23260000, 0x26a60000)
the space 8192K, 4% used [0x22a60000, 0x22ac64d0, 0x22ac6600, 0x23260000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x0040d000 C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe
0x7c800000 - 0x7c8c0000 C:\WINDOWS\system32\ntdll.dll
0x77e40000 - 0x77f42000 C:\WINDOWS\system32\kernel32.dll
0x77f50000 - 0x77fec000 C:\WINDOWS\system32\ADVAPI32.dll
0x77c50000 - 0x77cef000 C:\WINDOWS\system32\RPCRT4.dll
0x77380000 - 0x77412000 C:\WINDOWS\system32\USER32.dll
0x77c00000 - 0x77c48000 C:\WINDOWS\system32\GDI32.dll
0x77ba0000 - 0x77bfa000 C:\WINDOWS\system32\MSVCRT.dll
0x71c20000 - 0x71c32000 C:\WINDOWS\system32\tsappcmp.dll
0x76290000 - 0x762ad000 C:\WINDOWS\system32\IMM32.DLL
0x6d640000 - 0x6d7dd000 C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll
0x76aa0000 - 0x76acd000 C:\WINDOWS\system32\WINMM.dll
0x71bc0000 - 0x71bc8000 C:\WINDOWS\system32\rdpsnd.dll
0x771f0000 - 0x77201000 C:\WINDOWS\system32\WINSTA.dll
0x71c40000 - 0x71c98000 C:\WINDOWS\system32\NETAPI32.dll
0x76b70000 - 0x76b7b000 C:\WINDOWS\system32\PSAPI.DLL
0x6d290000 - 0x6d298000 C:\Program Files\Java\jre1.5.0_11\bin\hpi.dll
0x6d610000 - 0x6d61c000 C:\Program Files\Java\jre1.5.0_11\bin\verify.dll
0x6d310000 - 0x6d32d000 C:\Program Files\Java\jre1.5.0_11\bin\java.dll
0x6d630000 - 0x6d63f000 C:\Program Files\Java\jre1.5.0_11\bin\zip.dll
VM Arguments:
jvm_args: -Xms32m -Xmx512m -Xbootclasspath/a:C:\Program Files\Java\jre1.5.0_11\lib\javaws.jar;C:\Program Files\Java\jre1.5.0_11\lib\deploy.jar -Djnlpx.home=C:\Program Files\Java\jre1.5.0_11\bin -Djnlpx.splashport=1970 -Djnlpx.jvm="C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe" -Djnlpx.remove=true -Djava.security.policy=file:C:\Program Files\Java\jre1.5.0_11\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=32m,512m
java_command: com.sun.javaws.Main C:\DOCUME~1\ssiwach\LOCALS~1\Temp\1\javaws3
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\Program Files\Java\jre1.5.0_11\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\mysql\bin;"C:\Program Files\Java\jre1.5.0_11\bin"
USERNAME=ssiwach
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Server 2003 family Build 3790 Service Pack 1
CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
Memory: 4k page, physical 2097151k(438060k free), swap 4194303k(5136k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0
------------------------------------------------------------------------------------------------------------------Hi All,
While running java application through Webstart, we got the following error log and application is not running. I am not sure why this is happened? Can anyone help me out to resolve this problem?
Help Regarding this will be highly appreciated.
Thanks In advance.
Bala
Error in Log File:
# An unexpected error has been detected by HotSpot Virtual Machine:
# Internal Error (53545542324F5554494E45530E435050008C), pid=684, tid=9424
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
--------------- T H R E A D ---------------
Current thread (0x00345a60): JavaThread [_thread_in_vm, id=9424]
Stack: [0x00030000,0x00070000), sp=0x0006f9a4, free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x12430d]
V [jvm.dll+0x6366e]
V [jvm.dll+0x636a3]
V [jvm.dll+0x10073c]
V [jvm.dll+0x7859b]
V [jvm.dll+0x919fc]
C [javaw.exe+0x2120]
C [javaw.exe+0x11bb]
C [javaw.exe+0x3151]
C [kernel32.dll+0x123e5]
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
Other Threads:
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 2304K, used 42K [0x02a60000, 0x02cd0000, 0x051c0000)
eden space 2112K, 2% used [0x02a60000, 0x02a6a908, 0x02c70000)
from space 192K, 0% used [0x02c70000, 0x02c70000, 0x02ca0000)
to space 192K, 0% used [0x02ca0000, 0x02ca0000, 0x02cd0000)
tenured generation total 30272K, used 0K [0x051c0000, 0x06f50000, 0x22a60000)
the space 30272K, 0% used [0x051c0000, 0x051c0000, 0x051c0200, 0x06f50000)
compacting perm gen total 8192K, used 409K [0x22a60000, 0x23260000, 0x26a60000)
the space 8192K, 4% used [0x22a60000, 0x22ac64d0, 0x22ac6600, 0x23260000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x0040d000 C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe
0x7c800000 - 0x7c8c0000 C:\WINDOWS\system32\ntdll.dll
0x77e40000 - 0x77f42000 C:\WINDOWS\system32\kernel32.dll
0x77f50000 - 0x77fec000 C:\WINDOWS\system32\ADVAPI32.dll
0x77c50000 - 0x77cef000 C:\WINDOWS\system32\RPCRT4.dll
0x77380000 - 0x77412000 C:\WINDOWS\system32\USER32.dll
0x77c00000 - 0x77c48000 C:\WINDOWS\system32\GDI32.dll
0x77ba0000 - 0x77bfa000 C:\WINDOWS\system32\MSVCRT.dll
0x71c20000 - 0x71c32000 C:\WINDOWS\system32\tsappcmp.dll
0x76290000 - 0x762ad000 C:\WINDOWS\system32\IMM32.DLL
0x6d640000 - 0x6d7dd000 C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll
0x76aa0000 - 0x76acd000 C:\WINDOWS\system32\WINMM.dll
0x71bc0000 - 0x71bc8000 C:\WINDOWS\system32\rdpsnd.dll
0x771f0000 - 0x77201000 C:\WINDOWS\system32\WINSTA.dll
0x71c40000 - 0x71c98000 C:\WINDOWS\system32\NETAPI32.dll
0x76b70000 - 0x76b7b000 C:\WINDOWS\system32\PSAPI.DLL
0x6d290000 - 0x6d298000 C:\Program Files\Java\jre1.5.0_11\bin\hpi.dll
0x6d610000 - 0x6d61c000 C:\Program Files\Java\jre1.5.0_11\bin\verify.dll
0x6d310000 - 0x6d32d000 C:\Program Files\Java\jre1.5.0_11\bin\java.dll
0x6d630000 - 0x6d63f000 C:\Program Files\Java\jre1.5.0_11\bin\zip.dll
VM Arguments:
jvm_args: -Xms32m -Xmx512m -Xbootclasspath/a:C:\Program Files\Java\jre1.5.0_11\lib\javaws.jar;C:\Program Files\Java\jre1.5.0_11\lib\deploy.jar -Djnlpx.home=C:\Program Files\Java\jre1.5.0_11\bin -Djnlpx.splashport=1970 -Djnlpx.jvm="C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe" -Djnlpx.remove=true -Djava.security.policy=file:C:\Program Files\Java\jre1.5.0_11\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=32m,512m
java_command: com.sun.javaws.Main C:\DOCUME~1\ssiwach\LOCALS~1\Temp\1\javaws3
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\Program Files\Java\jre1.5.0_11\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\mysql\bin;"C:\Program Files\Java\jre1.5.0_11\bin"
USERNAME=ssiwach
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Server 2003 family Build 3790 Service Pack 1
CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
Memory: 4k page, physical 2097151k(438060k free), swap 4194303k(5136k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0
------------------------------------------------------------------------------------------------------------------ -
Run java application on mainframes
i have a financial application which needs to run java application on mainframes. Any ideas how i may do it. where do i get the jvm for the various OS. !
Thank you all for the reply. I have noted regarding jvm for OS390. Trouble is we have > 30 banks where this application has to be installed and run and these are very old systems like nsk and ve. so this would mean we need to have the jvm for all the different OS running. i would collect more info on the various OS before deciding if it can be done in java.
-
How connect an HTML page to a running Java Application?
Hi,
Exists a way to connect an HTML page to a running Java Application?
the idea is, If we use SWT, the Browser widget have an instance of IE/Firefox attached to it, and we load local HTML pages inside, then i wish to have a way to bridge Java Application from HTML page. Then with that we can do follow JScript:
var javaApp = document.getJavaApplication(); //here is the trick
//below is like we do today with applets
var person = container.create("myapp.Person");
person.setName("Test");
container.save(person);its great if we can Have an attribute for object tag or anything to conect HTML page to Java Application.I think that the better idea is to create a new mime type for that, maybe "application/x-java-connect-to-local-jvm", and use embed tag, to connect via plugin to a running JavaApp
example:
<embed type="application/x-java-connect-to-local-jvm" width="20" height="20" mainClass="mypackage.AppName"><br>
<script>
var javaApp = document.embeds[0];
function createPerson()
var person = javaApp.getNew("mypackage.Person");
person.setName("test");
javaApp.save(person);
}The width and height, isnt necessary, but the view can be used to show red if connection failed and green for sucessfull connections, or maybe embed tag can have src to images for sucessfull and unsucessfull states.
That's the idea, there is a way to extend Java Plugin to achieve that?
any tip or idea or to achieve that, are welcome.
Thanks -
Running Java Applications as a Windows Service
Hi,
can any one help me to develop windows services in java.
Running Java Applications as a Windows Service
Any example or link please send me.
Thanks and regards.
Amit.See the Java Service Wrapper at
http://wrapper.tanukisoftware.org/doc/english/introduction.html
It's really good and easy to use.
Bye. -
Cannot run java can anyone help??
cannot run java, it says it is loaded but when I go to Pogo.com java is booted out. Can anyone help??
have ur java software updated.
-
How to run java application without having java environment in a machine
can i run java application without having java environment(JVM) in a machine.I mean i dont have installed j2se or jdk in my machine.And i have an j2ee application running on another host which is built in swings.I want to access that application in my machine
can any one help regarding my problemIf you only need to access the program from one machine and you are running a Unix-like operating system (e.g., Linux, Solaris), you can use the remote display capabilities of X11. In this case you have to choose the host where the app will be displayed when you start it:
$ DISPLAY=<hostname>:0.0
$ export DISPLAY
$ java ...
If you want to be able to display it on both machines at the same time, or if you are using windows, then try something like VNC (http;//www.realvnc.com). Or if you are running windows and your version supports it, you can use windows remote desktop.
Maybe you are looking for
-
Issue returning a count of rows in a SELECT QUERY...
I am working in Oracle 11.2g and I have a query where I want to return the count of DAILY records as well as WEEKLY records for specific marketers. Here is my query: Select Mka_Mktr_No, Case When Rat_Freq_Cd = 'D' Then Count(*) Else 0
-
Display a column with a list of values from DUAL;
Hello, how can I display something like: COL1 A B C D E F
-
In MIGO Sec cess Field hidden in Excise item Tab
Hi Experts, We have a problem when we post excisable migo, Sec Cess Field is hidden. But BED and ECS field is clearly visible. What should we do. Resulting when we want to change SECESS we can not change it. Please help what should we do. GR.
-
How can I put my music from my ipod touch on my new Laptop computer????
I just purchased a laptop and I would like to put all my music from my ipod touch in to my new laptop. When I try to sync, I get a message that tells me all my music will be deleted! What can I do? Thanks, Matt Message was edited by: IwasNowiAm
-
i recently bought a used ipad with apps from someone. I want to down load my apps on to it with out lossing her apps. how can this be done?