Compiling Java Application
Hello!
I am trying to compile an application.I have already looked through the posts but could not find anything relevant.Here's the error that I am getting:
cannot access Settings bad class file: .\Settings.class class file has wrong version 49.0,should be 48 PLease remove or make sure it appears in the correct subdirectory of the classpath
Settings timeSettings = new Settings();
^
1 error
Thanks in advace for any help
http://forum.java.sun.com/thread.jspa?threadID=517933
Similar Messages
-
Compile java applications,servlets etc.
I am a newbie to java...what do i need to compile java applications,servlets etc.
first you need java developers kit(jdk)
download it
then r.click on my computer and take it's properties
go to advance properties
go to envirinment variable
set variables
JAVA_HOME set to directory where you installed jdk
CLASS_PATH set to the bin in your jdk
then write a java class and save somewhere as .java file
go to command prompt
change directory to where you save java class
and use javac (yourjavafilename) .java command to compile it
wish you all the best -
Java application hangs during running java native method
Hello,
There is compiled java application.
It hangs at very begginings.
It was detected that in the beggining a new Frame should be created. Then one java library invokes native method. During invoking of the native method application hangs.
Stack is available only until native method invocation.
Thread 25196 "main": (state = IN_NATIVE)
at sun.awt.X11GraphicsDevice.getDoubleBufferVisuals(Native Method)
at sun.awt.X11GraphicsDevice.getDefaultConfiguration(X11GraphicsDevice.java:181)
at java.awt.Window.init(Window.java:271)
at java.awt.Window.<init>(Window.java:319)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at com.test.ORBManager.Splash.<init>(Splash.java:10)
at com.test.ORBManager.Splash.main(Splash.java:48)
Method getDoubleBufferVisuals(int screen) is used to enumerates all visuals that support double buffering (according to comments in the source code).
Tried to run with "-verbose" options...
I tried to use jconsole и jvisualvm. But did not find anything special.
Also "strace" command showed some results but do not know how to proceed:
select(6, [5], [5], NULL, NULL) = 1 (out [5])
writev(5, [{"b\0\6\0\r\0\0\0DOUBLE-BUFFER\0\0\0", 24}], 1) = 24
select(6, [5], [], NULL, NULL) = 1 (in [5])
read(5, "\1\0\t\0\0\0\0\0\1\211\0\204\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32
read(5, 0x83b57bc, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1275494877, 569746}, NULL) = 0
select(6, [5], [5], NULL, NULL) = 1 (out [5])
writev(5, [{"b\0\6\0\r\0\0\0DOUBLE-BUFFER\0\0\0", 24}], 1) = 24
select(6, [5], [], NULL, NULL) = 1 (in [5])
read(5, "\1\0\n\0\0\0\0\0\1\211\0\204\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32
read(5, 0x83b57bc, 4096) = -1 EAGAIN (Resource temporarily unavailable)
select(6, [5], [5], NULL, NULL) = 1 (out [5])
writev(5, [{"\211\6\3\0\1\0\0\0&\0\0\0", 12}], 1) = 12
select(6, [5], [], NULL, NULL) = 1 (in [5])
read(5, "\1\0\v\0\f\0\0\0\1\0\0\0\377\32\0\0\377\r\307 \0\0\0\0\0\23\372\300\376\3346\34"..., 4096) = 44
read(5, 0x83c31e4, 36) = -1 EAGAIN (Resource temporarily unavailable)
select(6, [5], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
I have downloaded from the internet the source code of native method but do not know what I can do with it.
Is it possible to debug native method somehow?
How to detect where the library contans the native method is located?
What other ways can provide more information about reason.
It seems that the problem is related to graphics. Judging by class name "X11GraphicsDevice" it is related to X server. May be some server settings?
The problem is present on SLED 11 machines.
It is not reproduced on SLED 10.
I will be really appreciate for any help.
Thanks in advance.
Vasily.Hi,
Thanks for tip. I used jstack. It gives a little bit more info but I have to few knoledges how to treat the info.
----------------- 24231 -----------------
----------------- 24317 -----------------
0xffffe430 ????????
0x6dd12229 ????????
0xb0ca5898 * java.net.PlainSocketImpl.socketAccept(java.net.SocketImpl) bci:0 (Interpreted frame)
0xb0c9fb6b * java.net.PlainSocketImpl.accept(java.net.SocketImpl) bci:7 line:384 (Interpreted frame)
0xb0c9fb6b * java.net.ServerSocket.implAccept(java.net.Socket) bci:50 line:450 (Interpreted frame)
0xb0c9fb6b * java.net.ServerSocket.accept() bci:48 line:421 (Interpreted frame)
0xb0c9fa94 * sun.rmi.transport.tcp.TCPTransport.run() bci:59 line:340 (Interpreted frame)
0xb0c9fe71 * java.lang.Thread.run() bci:11 line:595 (Interpreted frame)
0xb0c9d236 <StubRoutines>
0xb6f38eac _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 0x1bc
0xb7108aa8 _ZN2os20os_exception_wrapperEPFvP9JavaValueP12methodHandleP17JavaCallArgumentsP6ThreadES1_S3_S5_S7_ + 0x18
0xb6f38705 _ZN9JavaCalls12call_virtualEP9JavaValue11KlassHandle12symbolHandleS3_P17JavaCallArgumentsP6Thread + 0xd5
0xb6f3879e _ZN9JavaCalls12call_virtualEP9JavaValue6Handle11KlassHandle12symbolHandleS4_P6Thread + 0x5e
0xb6fb0765 _Z12thread_entryP10JavaThreadP6Thread + 0xb5
0xb71a9373 _ZN10JavaThread3runEv + 0x133
0xb71096b8 _Z6_startP6Thread + 0x178
0xb781a1b5 start_thread + 0xc5
----------------- 24318 -----------------
0xffffe430 ????????
0x1b7bfaf0 ????????
----------------- 24373 -----------------
0xffffe430 ????????
0xb71087be _ZN2os5Linux14safe_cond_waitEP14pthread_cond_tP15pthread_mutex_t + 0xae
0xb70fe2af _ZN13ObjectMonitor4waitExiP6Thread + 0xa6f
0xb718bdc6 _ZN18ObjectSynchronizer4waitE6HandlexP6Thread + 0x56
0xb6f925e3 JVM_MonitorWait + 0x163
0xb0ca5898 * java.lang.Object.wait(long) bci:0 (Interpreted frame)
0xb0c9fb6b * java.lang.ref.ReferenceQueue.remove(long) bci:44 line:120 (Interpreted frame)
0xb0c9fa94 * java.lang.ref.ReferenceQueue.remove() bci:2 line:136 (Interpreted frame)
0xb0c9fa94 * sun.java2d.Disposer.run() bci:3 line:125 (Interpreted frame)
0xb0c9fe71 * java.lang.Thread.run() bci:11 line:595 (Interpreted frame)
0xb0c9d236 <StubRoutines>
0xb6f38eac _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 0x1bc
0xb7108aa8 _ZN2os20os_exception_wrapperEPFvP9JavaValueP12methodHandleP17JavaCallArgumentsP6ThreadES1_S3_S5_S7_ + 0x18
0xb6f38705 _ZN9JavaCalls12call_virtualEP9JavaValue11KlassHandle12symbolHandleS3_P17JavaCallArgumentsP6Thread + 0xd5
0xb6f3879e _ZN9JavaCalls12call_virtualEP9JavaValue6Handle11KlassHandle12symbolHandleS4_P6Thread + 0x5e
0xb6fb0765 _Z12thread_entryP10JavaThreadP6Thread + 0xb5
0xb71a9373 _ZN10JavaThread3runEv + 0x133
0xb71096b8 _Z6_startP6Thread + 0x178
0xb781a1b5 start_thread + 0xc5
----------------- 24227 -----------------
0xffffe430 ????????
0x6cbc4021 ????????
0x6cbc232a ????????
0x6cbc3c9a ????????
0x6cc1d5d1 ????????
0x6d41013f ????????
0x6d460f19 ????????
0xb0ca5898 * sun.awt.X11GraphicsDevice.getDoubleBufferVisuals(int) bci:0 (Interpreted frame)
0xb0c9fb6b * sun.awt.X11GraphicsDevice.getDefaultConfiguration() bci:140 line:181 (Interpreted frame)
0xb0c9fa94 * java.awt.Window.init(java.awt.GraphicsConfiguration) bci:51 line:271 (Interpreted frame)
0xb0c9fb6b * java.awt.Window.<init>() bci:66 line:319 (Interpreted frame)
0xb0c9fb6b * java.awt.Frame.<init>(java.lang.String) bci:1 line:419 (Interpreted frame)
0xb0c9fb6b * javax.swing.JFrame.<init>(java.lang.String) bci:2 line:194 (Interpreted frame)
0xb0c9fb6b * com.test.ORBManager.Splash.<init>() bci:3 line:10 (Interpreted frame)
0xb0c9fb6b * com.test.ORBManager.Splash.<init>(java.lang.String[]) bci:4 line:48 (Interpreted frame)
0xb0c9d236 <StubRoutines>
0xb6f38eac _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 0x1bc
0xb7108aa8 _ZN2os20os_exception_wrapperEPFvP9JavaValueP12methodHandleP17JavaCallArgumentsP6ThreadES1_S3_S5_S7_ + 0x18
0xb6f38cdf _ZN9JavaCalls4callEP9JavaValue12methodHandleP17JavaCallArgumentsP6Thread + 0x2f
0xb6f638b2 _Z17jni_invoke_staticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP6Thread + 0x152
0xb6f54ac2 jni_CallStaticVoidMethod + 0x122
0x08049873 ????????
0xb76c9705 ????????The last stack also has "sun.awt.X11GraphicsDevice.getDoubleBufferVisuals(int) bci:0 (Interpreted frame)" but what tode next?
Also I found that the native code is in java 1.5 source code: \j2se\src\solaris\native\sun\awt\awt_GraphicsEnv.c.
How it is possible to compile it? -
Distributing my Java Application
Dear Sir/Mdm,
Hi Java experts.... Is there something that i need to watch out for if i want to distribute my compiled Java application in 'jre' format? Is there something that i need to do such that i will not be legally sued?
ThankxHi Java experts.... Is there something that i need
ed to watch out for if i want to distribute my
compiled Java application in 'jre' format? Is there
something that i need to do such that i will not be
legally sued?
Normally there is nothing that you can do that be a problem.
However, any of the following could lead to problems
1. You used any of the Sun source code, modified it and then used it.
2. You found some source code or class/jar files on the internet or in a magazine and it did not explicitly say it was free to use. And you are using it as is or modified.
3. You found some source code or class/jar files else on the internet or in a magazine and it explicitly said it was free to use but you had to mention that you were using it. And your docs/gui doesn't say that. (There are actually many variations on this.) -
Java application compiles java files in memory
how can I use java application program (that may call method runtime exec or some other techniques) to compile the other java files that were already loaded in memory. (I can not copy those target files to the hard disk with extension java, then compile for security reason).
And once they are compiled, where do you plan to put the compiled .class files? Same security problem, right? Perhaps you planned to load and use them "from memory" somehow? This would be a different security problem. Perhaps you need to rethink what you are doing.
-
I am doing this to compile my Java application
Hi, I am doing this when I click on a button in my application to compile my application in an editor. But my application gets hanged when I do this. Could any one correct me where I am wrong.
Thanks
File file;
JTextPane textForJIF;
JTextArea compileArea;
if(ae.getSource().equals(compileJavaB) || ae.getSource() == javac)
try{
if ( textForJIF.getText().length() > 0 )
//File file = frame.getFile();
String fileName1 = file.getName();
String pathName = file.getPath(),fileName = file.getName();
if ( !fileName.endsWith(".java") )
return;
//String dirPath = file.getParent();
String currentDir = file.getParent();
Runtime rt = Runtime.getRuntime();
startTime = System.currentTimeMillis();
Process p = rt.exec( command, null, new File( currentDir ) );
BufferedReader reader1 = new BufferedReader(new InputStreamReader(p.getInputStream()));
BufferedReader reader2 = new BufferedReader(new InputStreamReader(p.getErrorStream()));
endTime = System.currentTimeMillis() - startTime;
long lg = endTime/1000;
String time = "Time taken: " + lg + "." + (endTime-lg*1000) + " seconds.";
String result = "Java Compiler"+ p + "Time taken:"+time;
String message = "Result";
//for(int i=0;i<10;i++)
String message1 = reader1.readLine();
System.out.println("message1:"+message1);
String messageIn = reader2.readLine();
System.out.println("messageIn:"+messageIn);
// if(messageIn == null) break;
message = messageIn+"\n"+message;
System.out.println("message is:"+message);
compileArea.setText(message);
//compileArea.append(result);
p.destroy();
}catch(Exception ex) { System.out.println(ex); }What is the error you are getting?
-
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. -
Windows xp runs java application but does not compile it - urgent please
Hi
My new PC(portable) does not compile my java progran:
'javac' is not recognized as an internal or external command, operatable program or batch file.
If you have any suggestion, please let me know!
AriaThanks anyhow;
The following information is sent to beginners site.
I have talked to british, belgian and others regarding this problem. They said it is very expensive and we laughed.
Hi,
Windows XP runs java application but does not compile it. I get following message:
'javac' is not recognized as an internal or external command, operatable program or batch file.
MS-DOS does not exists but a command line edits autoexec.nt having allinformation regarding installed jdk5. I run my java applicat
ion from here. But no compilation.
Environment variables has following information.
JAVA_HOME C:\jdk5.0
CLASSPATH C:\jdk5.0\myPrograms
path %JAVA_HOME%bin
All information in autoexec.nt exists as windows 98 and I run it from command line.
Would you please tell me what is wrong?
Thanks
Aria -
Storing chinese in client odb from java application
Hi all,
first i like to thank Greg Rekounas for his wonderful support and contribution....
This is my server setup.
os-windows 2000 sp4
db-oracle 9ir2 (unicode with AL32UTF8 charset)
lite-oracle10g r2 (with latest patchset)
nls_lang- AMERICAN_AMERICA.AL32UTF8
storing and retriving chinese in oracle 9i database from isql*plus works.
lite configuration.
1. In $OLITE_HOME\mobile_oc4j\j2ee\mobileserver\applications
\mobileserver\setup\common\webtogo\webtogo.ora file edited the JAVA_OPTION
to:
JAVA_OPTION=-Djava.compiler=NONE -Dfile.encoding=UTF8
2. In $OLITE_HOME\mobile_oc4j\j2ee\mobileserver\applications
\mobileserver\setup\dmc\common\win32.inf file, added the following:
a. In the <file> section, added the following:
<item>
<src>/common/win32/olilUTF8.dll</src>
<des>$APP_DIR$\bin\olilUTF8.dll</des>
</item>
b. In the <ini> section, added the following:
<item name='POLITE.INI' section='All Databases'>
<item name="DB_CHAR_ENCODING">UTF8</item>
</item>
<item name='POLITE.INI' section='SYNC'>
<item name="DB_ENCODING">UTF8</item>
</item>
published the application developed in java using packaging wizard.
downloaded the client in the pc with the following config:
windows 2000 (english)
nls - default.
installed chinese language support.
tried to access 9i database from isql*plus and stored & viewed chinese characters sucessfully.
tried to store a chinese character from java application in the client odb -- failed.
values are getting inserted from the application but when i view them back it shows & # 2 6 0 8 5 ; (i have included a space in between all 8 characters.
but when i copy this no and paste in msword it shows 日(chinese character)
i dont know the exact reason for the above scenerio...................
Also please help me on this too.......
why can i store & view chinese characters sucessfully in isql*plus from the client machine while i cannot do the same on client odb from java application even though the lite config are done to support utf8?
is anything i left out?
should i do any codes changes in java?(java application is of verision jdk1.4_13)
Thanks,
Ashok kumar.GSorry for late replay!! in the SharePoint server both the Claim based and Classic mode is enabled in the server, but still I want to get authenticated via Classic mode just like it happens in SharePoint 2007 and 2010, so do i have to use a different
set of classes to do that if yes can you please tell me those ? -
How to get Portal user from a standalone Java application
Hi,
I have a standalone Java application from where I need to fetch the Portal User Information like userid and email id.
I am using the below line of code
iUser = UMFactory.getUserFactory().getUserByLogonID("e017939");
I have included the jar file com.sap.security.api , But it was giving me the below exception
java.lang.NoClassDefFoundError: com/sap/tc/logging/Location
at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:55)
at com.am.wcas.java.mailscheduler.kmaccess.FetchDataFromKM.getiUser(FetchDataFromKM.java:29)
at com.am.ScheduleEmails.main(ScheduleEmails.java:89)
and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
Then I went throught he SDN threads and they asked me to include the
logging.jar and com.sap.security.perm.api .
I Included them, then also, it is giving me Exception
java.lang.NoClassDefFoundError: com/sap/engine/lib/logging/LoggingHelper
at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:56)
at com.am.FetchKMData.main(FetchKMData.java:30)
Exception in thread "main"
and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
Kindly let me know if it is possible to access the User info using UMFactory in a standalone Java application. If yes kindly let me know where i am going wrong.
Regards,
Shilpa B.VHi Shilpa,
1. Check that you have added com.sap.security.api within the Your Project>Libraries folder (under navigation tab) and also added jars in the build path of the Your Project under project>properties>Build Path.
2. In case you have a DC instead of Web Dynpro Project then you have to add the com.sap.security.api under Your DC>Used DCs and have compile time and runtime dependency added.
Here java.lang.NoClassDefFoundError is caused basically due to only build time dependency added and reference to the jar missing at runtime. Rest the code to retrieve the current user id using UME API and getUserByLogOnID("....") method with/without portal environment would not be an issue at all.
Regards,
Tushar SInha -
Java application crashes due to some problem in native code
Hi All
I have a Java application that calls APIs in a 3rd party DLL(I don't have access to its source code or logs) through my VC++ DLL(Win32) that acts as the wrapper DLL.
The Application has many functionalities and is based on multithreading (both on Java layer as well as C++ layer). Most of the functionalities are working , but when I try to close the application, it crashes.
Moreover the crashing occurs inconstently, sometimes it does not crash. Instead of showing any debug information , it simply creates a error file with disassembly code that I am not able to understand.
Though the error seems like an java error, but actually it seems to be due to native code. I have try catch blocks in my code and also implemented settranslator functionality to get hold of structured/C exceptions. But still I am not able to catch any exceptions.
I am pasting the the contents of the file here:
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9111de, pid=488, tid=1848
# Java VM: Java HotSpot(TM) Client VM (1.4.2_14-b05 mixed mode)
# Problematic frame:
# C [ntdll.dll+0x111de]
--------------- T H R E A D ---------------
Current thread (0x009d1790): JavaThread "CompilerThread0" daemon [_thread_in_native, id=1848]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000001
Registers:
EAX=0x00000001, EBX=0x00030000, ECX=0x02d17a18, EDX=0x00030278
ESP=0x02c2f8e8, EBP=0x02c2fb08, ESI=0x02d17a10, EDI=0x00000001
EIP=0x7c9111de, EFLAGS=0x00010202
Top of Stack: (sp=0x02c2f8e8)
0x02c2f8e8: 009fa9a0 000000c0 00000008 0811d3d8
0x02c2f8f8: 0000000c 00a2c0e0 00000003 00000004
0x02c2f908: 08018216 00000001 02c2fcc4 08018385
0x02c2f918: 00000002 00000001 02c2f93c 02d06d0c
0x02c2f928: 0802a50a 00000000 00000001 02c2f93c
0x02c2f938: 04a3cb4c 02d01008 02c2f964 0802a850
0x02c2f948: 02c2f96e 00000000 00000007 00000000
0x02c2f958: 04a3cb38 00000004 08018216 00000001
Instructions: (pc=0x7c9111de)
0x7c9111ce: 39 89 bd 0c ff ff ff 8b 46 0c 89 85 68 ff ff ff
0x7c9111de: 8b 10 3b 57 04 0f 85 8c 31 02 00 3b d1 0f 85 84
Stack: [0x02bf0000,0x02c30000), sp=0x02c2f8e8, free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x111de]
C [MSVCRT.dll+0x1c3c9]
C [MSVCRT.dll+0x1c3e7]
C [MSVCRT.dll+0x1c42e]
V [jvm.dll+0xacda9]
V [jvm.dll+0x17102]
V [jvm.dll+0x16c8d]
V [jvm.dll+0x16dca]
V [jvm.dll+0x170a7]
V [jvm.dll+0x172e8]
V [jvm.dll+0x4dc65]
V [jvm.dll+0x4d894]
V [jvm.dll+0xd3a36]
V [jvm.dll+0xd3a04]
C [MSVCRT.dll+0x2a3b0]
C [kernel32.dll+0xb683]
Current CompileTask:
HotSpot Client Compiler:423 b sun.awt.AWTAutoShutdown.isReadyToShutdown()Z (33 bytes)
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x049d6328 JavaThread "Thread-19" [_thread_blocked, id=1440]
0x049d24d0 JavaThread "Thread-18" [_thread_blocked, id=3620]
0x049d40c8 JavaThread "Thread-17" [_thread_blocked, id=2476]
0x02df0538 JavaThread "TimerQueue" daemon [_thread_blocked, id=3876]
0x00036a78 JavaThread "DestroyJavaVM" [_thread_blocked, id=2448]
0x02e43768 JavaThread "Thread-6" [_thread_blocked, id=3664]
0x02e23130 JavaThread "Thread-4" [_thread_blocked, id=2816]
0x02e21d08 JavaThread "Thread-2" [_thread_blocked, id=3344]
0x02da3f78 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2528]
0x02da3268 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4008]
0x02d91f90 JavaThread "AWT-Windows" daemon [_thread_blocked, id=648]
0x02d3a478 JavaThread "AWT-Shutdown" [_thread_blocked, id=2988]
=>0x009d1790 JavaThread "CompilerThread0" daemon [_thread_in_native, id=1848]
0x009d0a90 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3568]
0x009ce128 JavaThread "Finalizer" daemon [_thread_blocked, id=1824]
0x009ccda0 JavaThread "Reference Handler" daemon [_thread_blocked, id=3280]
Other Threads:
0x00a0b6e8 VMThread [id=608]
0x00a0d620 WatcherThread [id=3012]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 640K, used 583K [0x10010000, 0x100c0000, 0x104f0000)
eden space 576K, 90% used [0x10010000, 0x10091e40, 0x100a0000)
from space 64K, 99% used [0x100b0000, 0x100bfff8, 0x100c0000)
to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation total 7772K, used 5451K [0x104f0000, 0x10c87000, 0x14010000)
the space 7772K, 70% used [0x104f0000, 0x10a42d80, 0x10a42e00, 0x10c87000)
compacting perm gen total 8192K, used 8137K [0x14010000, 0x14810000, 0x18010000)
the space 8192K, 99% used [0x14010000, 0x148024e8, 0x14802600, 0x14810000)
Dynamic libraries:
0x00400000 - 0x0040b000 c:\dcsthick\jre\bin\java.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08143000 c:\dcsthick\jre\bin\client\jvm.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x10000000 - 0x10007000 c:\dcsthick\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x00390000 - 0x0039e000 c:\dcsthick\jre\bin\verify.dll
0x003b0000 - 0x003c9000 c:\dcsthick\jre\bin\java.dll
0x003d0000 - 0x003de000 c:\dcsthick\jre\bin\zip.dll
0x02e70000 - 0x02f84000 C:\dcsthick\jre\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\SYSTEM32\uxtheme.dll
0x02fe0000 - 0x03031000 C:\dcsthick\jre\bin\fontmanager.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
0x03320000 - 0x0333c000 C:\dcsthick\lib\CrewsDmApiJniNt.dll
0x031b0000 - 0x031bb000 c:\dcsthick\lib\CRWNT_DM.dll
0x03240000 - 0x03249000 c:\dcsthick\lib\BAT_API.dll
0x03340000 - 0x03352000 c:\dcsthick\lib\DC_DSM32.dll
0x03360000 - 0x03369000 c:\dcsthick\lib\CRWTOOLS.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x03370000 - 0x0337a000 c:\dcsthick\lib\PMAPI.dll
0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\COMCTL32.dll
0x03790000 - 0x037b2000 c:\dcsthick\ResaDLL\DC_DSMNB.dll
0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
0x038d0000 - 0x038f2000 c:\dcsthick\ResaDLL\DC_DSMIP.dll
0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x66580000 - 0x6658f000 C:\WINDOWS\system32\pnrpnsp.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x032e0000 - 0x0330a000 C:\dcsthick\lib\ResaHostConnection.dll
0x03250000 - 0x03257000 c:\dcsthick\lib\CRWNT_GWALC.dll
0x03310000 - 0x03319000 c:\dcsthick\lib\ALCAPI.dll
0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
VM Arguments:
jvm_args: -Dcfdynaproppath=c:\dcsthick/config/ -Dcfdynapropxml=RESA_KCOdynamicproperties.xml -DConfigPath=c:\dcsthick/config/RESA_KCOConfig.xml -DResolution=High -DWorkstationID=GWGTE -DMode=GateBoarding -DlogPath=c:\temp\kcologs -DlogInformation=0 -DGateway=ALCSQ1 -DNetBiosPort=A
java_command: com.singaporeair.dcs.standalone.application.model.ApplicationModel SQ/IGATEADXX
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=c:\dcsthick\jre\bin
PATH=c:\dcsthick\jre\bin;c:\dcsthick/lib;c:\dcsthick/ResaDLL
USERNAME=USER
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 2 family 6, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 1039600k(565656k free), swap 2501208k(2091128k free)
vm_info: Java HotSpot(TM) Client VM (1.4.2_14-b05) for windows-x86, built on Mar 14 2007 16:46:11 by "java_re" with MS VC++ 6.0
The JAVA Application during initialisation establishes a connection with the host server for various devices. For each of the device it establishes a separate connection and keeps listening on these connections using multithreading.
During App close, we need to close each of these connections one by one for each device.
The opening /closing of connection is done by 3rd party DLL and call to there APIs is done through a C++ Wrapper DLL that I have built between the Java layer and their DLL.
When we close the Application, I am always able to close the connections on the first 2 devices. Then all of a sudden it crashes either for the 3rd device conn. close or for the 4th one. The code is the same for all the devices . That too sometimes it just goes fine without crashing. If its a null pointer exception, why is it that it crashes on some occassions and not in other times. More importantly, why is it that it does not fail for the first 2 devices , but fails for the 3rd or 4th device connection close?
Can please anyone help me. Please suggest me as to how I can determine the cause of the error.
And is this error really coming in ntdll.dll or is it getting caused of my dll?The opening /closing of connection is done by 3rd party DLL and call to there APIs is done through a C++ Wrapper DLL that I have built between the Java layer and their DLL.The specific error indicates a pointer/memory problem.
The first place that is likely is in your code.
The second most likely place for the cause is because you are using the third party library incorrectly. For example before exiting you are supposed to clean up resources and you are not doing so.
As a remote possibility, much less likely that either of the above, there is a bug in jnative or in the 3rd party library. -
How to call function in included dll file through java application.
Hi All,
i am trying to create an java application which call c# functions using JNI. i am completed with the code and it is running fine when i tried to run from netbeans IDE. But when i tried from Calculator.jar file, first time it throws this error:
F:\JavaProjects\Calculator\dist>Java -jar Calculator.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: no CSharpClient in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at calculator.CalculatorApp.<clinit>(CalculatorApp.java:20)
After that i included that dll file in the cuurent directory. And compiled and tried to run, it throws an unexpected error:
F:\JavaProjects\Calculator\dist>Java -jar Calculator.jar
*# An unexpected error has been detected by Java Runtime Environment:*
*# Internal Error (0xe0434f4d), pid=2640, tid=3700*
*# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing)*
*# Problematic frame:*
*# C [kernel32.dll+0x12a5b]*
*# An error report file with more information is saved as hs_err_pid2640.log*
*# If you would like to submit a bug report, please visit:*
*# http://java.sun.com/webapps/bugreport/crash.jsp*
Anyone have idea how to solve this error.
Thanks in advance.This error is created whenever things go sour on the native side. The first thing you can try, and I assume you are using a Java<->C++<->C# bridge which includes two dlls, one created by C++ and another by C#. Is to make sure that the C# dll is compiled using /t:module switch during compilation.
If you are using VS2008, or VS2005, you can add a post build syntax like:
csc /t:module /out:"$(ProjectDir)$(OutDir)YourModule.dll" "$(ProjectDir)YourCSfile.cs"
Hope this helps! If not, ensure first that the native code works by creating a native test app for it. -
How can i built a java application using java debug class on Log4J
Hi,
As java API support the MethodEntryEvent, using which I can get the automatic logging statements when the method is entered or exited as HelloExample.main(with argument type).
Where HelloExample is the class name.
Main is the method entered with its argument types.
In some cases I have the o/p as
-- VM Started --
====== main ======
main -- HelloExample
callerMethod -- HelloExample
====== main end ======
-- The application exited --
By using Log4J is there any possibility of getting these sort of o/p along with the loggers supported by Log4J. i mean to say can i built an java application which supports the MethodEntryEvent and MethodExitEvent from java API and also uses the Log4J debugging. I took an e.g. trace example, which (in J2SE 1.4.x or 5.x) will be found in $JAVA_HOME/demo/jpda/examples.jar and unpacking it by
jar -xvf $JAVA_HOME/demo/jpda/examples.jar i found the com/sun/tools/example/trace/Trace.java and passed the class constructed with logger taken from Log4J. In this case the logging message is displayed on the console. As per the requirement i need to transfer the whole o/p to an output file along with Log4J logger statements. in this case i should not give any command in the cosule except compiling and executing the programme. the programm also should able to run without the main() as i need to integrate Log4J with an application and the code must me application server independent. i need the output as i got using MethodEnteryEvent (shown as above) in case of java application built using Log4J.
Can any one help me in this regard. can any one give me some suggestion or any programme of this sort. All suggestions are welcomed.
Thanks & Regards,hi,
can someone help me how to implement logging for method entry parameters and
method exit return value.
can someone help me how to use log4j and integrate it to the method entry
logging and method exit logging.
Here what i need is without writing the log statements for the method entry and
method exit i need to log it to the file
along with other log4j debug statements i provide in the file.I should be able
to configure whether to enable/disable the logging
for method entry and method exit. In method entry i should be able to log the
parameters the method take and in method exit
i should be able to log te return value to the log file, before the method is
returned to the callee.
i hope i am clear
Thanks in advance. -
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
------------------------------------------------------------------------------------------------------------------ -
Running a java application in command prompt
hi, I'm new to this forum.
I would like to know what exactly needs to be specified to run a java application in a normal DOS command prompt.
I know it is something like:
javaw -classpath .\class GUI.applicationGUI
where applicationGUI is the main class, right? What else do I need to do, since I have some other non-GUI classes that I need, inside the class folder ?
Thanks for your time.You need to import those classes. And you need to make packages.
In classes 1, 2 and 3 put:
package class;
In class 4 put;
package class.GUI;
Then you need to make the connection:
In classes 1,2 and 3 put:
import class.GUI.*;
In class 4 put:
import class.*;
Compile each directory separately while in the respective directory. javac *.java
Then go back to the directory above the directory "class" and run
java class/GUI/name_of_file_containing_main_method
Maybe you are looking for
-
I am about to remove 1.4 I have found that for some reason I have a number of .lrcat files on the drive, taking up some considerable amount of space. My master photos' are all safe on a drive. Can I just delete the .lrcat files and the associated fol
-
DOCUMENT CLASSIFICATION AND CTXRULE INDEX TYPES IN ORACLE9I TEXT
제품 : ORACLE SERVER 작성날짜 : 2004-05-27 DOCUMENT CLASSIFICATION AND CTXRULE INDEX TYPES IN ORACLE9I TEXT ================================================================ PURPOSE 이 문서는 Oracle9i 에서 추가된 새로운 기능으로 Oracle Text 에서의 문서 분류기능(Document Classificat
-
Creating jar of database connectivity application
Hi, I have created a project in eclipse 3.3 using WindowBuilder - > SwingDesigner . i have to save data in Mysql server . It is wroking fine in eclipse , my problem is this i want to run this project in some other system where only jre is installed a
-
HT1695 my internet is not connecting in my "iphone 4s" what is the solution please help
my internet is not connecting in my "iphone 4s" what is the solution please help
-
How can I extract all frames from a AVCHD clip to JPEG?