I can't execute java program.

when we execute our java application,
we met this fatal error.
my environment of execution are
- used jnlp(webstart)
- swing program
- JRE (1.6.0_22-b04)
when it happened error, it created hs_err_pidxxxx.log file.(xxxx means sequence).
of caurse, we try to execute again, we can do it successfully.
this is file contents
# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000091, pid=11360, tid=11164
# JRE version: 6.0_22-b04
# Java VM: Java HotSpot(TM) Client VM (17.1-b03 mixed mode windows-x86 )
# Problematic frame:
# C 0x00000091
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
--------------- T H R E A D ---------------
Current thread (0x47f80800): JavaThread "Thread-3" [_thread_in_native, id=11164, stack(0x47d10000,0x47d50000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000091
Registers:
EAX=0x47d4f824, EBX=0x47f80918, ECX=0x47d4f7d4, EDX=0x47d4f820
ESP=0x47d4f77c, EBP=0x00000001, ESI=0x47f98cc8, EDI=0x47f80800
EIP=0x00000091, EFLAGS=0x00010202
Top of Stack: (sp=0x47d4f77c)
0x47d4f77c: 6d114c04 47f80918 47f98cc8 00000004
0x47d4f78c: 47d4f7d4 47d4f824 47d4f820 ffa0a0b4
0x47d4f79c: 47f80800 431fe380 431fe380 47d4f7fc
0x47d4f7ac: 0095e772 47f80918 47d4f82c 47d4f828
0x47d4f7bc: 47d4f824 47d4f820 ffa0a0b4 00000070
0x47d4f7cc: 0000005b 00000092 00000001 0000001e
0x47d4f7dc: 47d4f7dc 431fe380 47d4f82c 431ff1a8
0x47d4f7ec: 00000000 431fe380 00000000 47d4f80c
Instructions: (pc=0x00000091)
0x00000081:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xc0000005]
Stack: [0x47d10000,0x47d50000], sp=0x47d4f77c, free space=fd47d4ec3ck
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x00000091
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.java2d.windows.GDIRenderer.doFillRect(Lsun/java2d/SurfaceData;Lsun/java2d/pipe/Region;Ljava/awt/Composite;IIIII)V+0
j sun.java2d.windows.GDIRenderer.doFillSpans(Lsun/java2d/SunGraphics2D;Lsun/java2d/pipe/SpanIterator;)V+67
j sun.java2d.windows.GDIRenderer.draw(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V+39
j sun.java2d.pipe.PixelToShapeConverter.drawLine(Lsun/java2d/SunGraphics2D;IIII)V+22
j sun.java2d.pipe.ValidatePipe.drawLine(Lsun/java2d/SunGraphics2D;IIII)V+19
j sun.java2d.SunGraphics2D.drawLine(IIII)V+10
j javax.swing.plaf.basic.BasicProgressBarUI.paintDeterminate(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+218
j javax.swing.plaf.basic.BasicProgressBarUI.paint(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+22
j com.incors.plaf.kunststoff.KunststoffProgressBarUI.paint(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+3
j javax.swing.plaf.ComponentUI.update(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+32
j javax.swing.JComponent.paintComponent(Ljava/awt/Graphics;)V+26
j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+290
j kosmos.basex.util.KosmosUtils.paintImmediately(Ljava/awt/Component;)V+7
j kosmos.basex.ui.dialog.ProgressDialog.setProgress(I)V+36
j kosmos.KosmosApp.Progress(Ljava/lang/String;)V+47
j kosmos.KosmosApp.createUI()Z+823
j kosmos.KosmosApp$1uitask.run()V+520
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x47fa8800 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=11120, stack(0x48830000,0x48870000)]
0x48017800 JavaThread "TimerQueue" daemon [_thread_blocked, id=4844, stack(0x486f0000,0x48730000)]
0x47fda800 JavaThread "Thread-5" [_thread_blocked, id=8656, stack(0x486b0000,0x486f0000)]
0x47fd6c00 JavaThread "Thread-4" [_thread_blocked, id=9784, stack(0x48660000,0x486a0000)]
0x47f86800 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=8336, stack(0x483c0000,0x48400000)]
=>0x47f80800 JavaThread "Thread-3" [_thread_in_native, id=11164, stack(0x47d10000,0x47d50000)]
0x47364c00 JavaThread "Image Animator 0" daemon [_thread_blocked, id=9872, stack(0x47cb0000,0x47cf0000)]
0x4735a400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=11200, stack(0x47c70000,0x47cb0000)]
0x47352400 JavaThread "APP THREAD" [_thread_blocked, id=10268, stack(0x47c30000,0x47c70000)]
0x4731c000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=10296, stack(0x47540000,0x47580000)]
0x4731ac00 JavaThread "AWT-Shutdown" [_thread_blocked, id=8412, stack(0x47500000,0x47540000)]
0x47317400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=12040, stack(0x474c0000,0x47500000)]
0x46e47c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10972, stack(0x471b0000,0x471f0000)]
0x46e3d400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=8952, stack(0x47160000,0x471b0000)]
0x46e33800 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=6884, stack(0x47120000,0x47160000)]
0x46e2cc00 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=12020, stack(0x470e0000,0x47120000)]
0x46e2a800 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=10376, stack(0x470a0000,0x470e0000)]
0x46e1b000 JavaThread "Attach Listener" daemon [_thread_blocked, id=10472, stack(0x46fa0000,0x46fe0000)]
0x46e37800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12052, stack(0x46f60000,0x46fa0000)]
0x46e09000 JavaThread "Finalizer" daemon [_thread_blocked, id=10348, stack(0x46f20000,0x46f60000)]
0x46e04400 JavaThread "Reference Handler" daemon [_thread_blocked, id=6568, stack(0x46ee0000,0x46f20000)]
0x00847800 JavaThread "main" [_thread_blocked, id=11564, stack(0x008e0000,0x00920000)]
Other Threads:
0x46e01800 VMThread [stack: 0x46e90000,0x46ee0000] [id=9788]
0x46e49c00 WatcherThread [stack: 0x471f0000,0x47240000] [id=8676]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 314560K, used 117447K [0x029d0000, 0x17f20000, 0x17f20000)
eden space 279616K, 42% used [0x029d0000, 0x09c81c48, 0x13ae0000)
from space 34944K, 0% used [0x13ae0000, 0x13ae0000, 0x15d00000)
to space 34944K, 0% used [0x15d00000, 0x15d00000, 0x17f20000)
tenured generation total 699072K, used 0K [0x17f20000, 0x429d0000, 0x429d0000)
the space 699072K, 0% used [0x17f20000, 0x17f20000, 0x17f20200, 0x429d0000)
compacting perm gen total 12288K, used 10980K [0x429d0000, 0x435d0000, 0x469d0000)
the space 12288K, 89% used [0x429d0000, 0x43489060, 0x43489200, 0x435d0000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00424000      C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe
0x7c930000 - 0x7c9ce000      C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c92f000      C:\WINDOWS\system32\kernel32.dll
0x77f50000 - 0x77ff8000      C:\WINDOWS\system32\ADVAPI32.dll
0x77d80000 - 0x77e12000      C:\WINDOWS\system32\RPCRT4.dll
0x77ef0000 - 0x77f01000      C:\WINDOWS\system32\Secur32.dll
0x77cf0000 - 0x77d7f000      C:\WINDOWS\system32\USER32.dll
0x77e20000 - 0x77e68000      C:\WINDOWS\system32\GDI32.dll
0x762e0000 - 0x762fd000      C:\WINDOWS\system32\IMM32.DLL
0x62340000 - 0x62349000      C:\WINDOWS\system32\LPK.DLL
0x73f80000 - 0x73feb000      C:\WINDOWS\system32\USP10.dll
0x77bc0000 - 0x77c18000      C:\WINDOWS\system32\msvcrt.dll
0x7c340000 - 0x7c396000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\msvcr71.dll
0x6d8a0000 - 0x6db47000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\client\jvm.dll
0x76af0000 - 0x76b1b000      C:\WINDOWS\system32\WINMM.dll
0x6d850000 - 0x6d85c000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\verify.dll
0x6d3d0000 - 0x6d3ef000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\java.dll
0x6d330000 - 0x6d338000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\hpi.dll
0x76ba0000 - 0x76bab000      C:\WINDOWS\system32\PSAPI.DLL
0x6d420000 - 0x6d449000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\jdwp.dll
0x6d740000 - 0x6d746000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\npt.dll
0x6d890000 - 0x6d89f000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\zip.dll
0x6d2b0000 - 0x6d2b7000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\dt_socket.dll
0x719e0000 - 0x719f7000      C:\WINDOWS\system32\WS2_32.dll
0x719d0000 - 0x719d8000      C:\WINDOWS\system32\WS2HELP.dll
0x71980000 - 0x719bf000      C:\WINDOWS\System32\mswsock.dll
0x76ed0000 - 0x76ef7000      C:\WINDOWS\system32\DNSAPI.dll
0x76f60000 - 0x76f68000      C:\WINDOWS\System32\winrnr.dll
0x76f10000 - 0x76f3c000      C:\WINDOWS\system32\WLDAP32.dll
0x64000000 - 0x64025000      C:\Program Files\Bonjour\mdnsNSP.dll
0x76d10000 - 0x76d29000      C:\WINDOWS\system32\Iphlpapi.dll
0x76f70000 - 0x76f76000      C:\WINDOWS\system32\rasadhlp.dll
0x65cb0000 - 0x65d06000      C:\WINDOWS\system32\hnetcfg.dll
0x719c0000 - 0x719c8000      C:\WINDOWS\System32\wshtcpip.dll
0x6d0b0000 - 0x6d1fa000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\awt.dll
0x72f50000 - 0x72f76000      C:\WINDOWS\system32\WINSPOOL.DRV
0x76970000 - 0x76aad000      C:\WINDOWS\system32\ole32.dll
0x77160000 - 0x77263000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\COMCTL32.dll
0x77e70000 - 0x77ee6000      C:\WINDOWS\system32\SHLWAPI.dll
0x5a480000 - 0x5a4b8000      C:\WINDOWS\system32\uxtheme.dll
0x6d2e0000 - 0x6d32f000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\fontmanager.dll
0x47580000 - 0x4759e000      C:\WINDOWS\SoftCamp\SDS\DSEDCon.dll
0x7d5a0000 - 0x7dd9c000      C:\WINDOWS\system32\SHELL32.dll
0x77bb0000 - 0x77bb8000      C:\WINDOWS\system32\VERSION.dll
0x47450000 - 0x4745e000      C:\WINDOWS\DSIpcAg.dll
0x475a0000 - 0x475a8000      C:\WINDOWS\system32\SXTracer.dll
0x73d10000 - 0x73e0e000      C:\WINDOWS\system32\MFC42.DLL
0x61300000 - 0x6130d000      C:\WINDOWS\system32\MFC42LOC.DLL
0x477d0000 - 0x477f6000      C:\WINDOWS\WRMK.dll
0x74660000 - 0x746ab000      C:\WINDOWS\system32\MSCTF.dll
0x75110000 - 0x7513e000      C:\WINDOWS\system32\msctfime.ime
0x47960000 - 0x479c9000      C:\WINDOWS\system32\IMKR12.IME
0x770d0000 - 0x7715b000      C:\WINDOWS\system32\OLEAUT32.dll
0x78130000 - 0x781cb000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\MSVCR80.dll
0x7c420000 - 0x7c4a7000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\MSVCP80.dll
0x4b9e0000 - 0x4bb86000      C:\WINDOWS\system32\d3d9.dll
0x6de50000 - 0x6de56000      C:\WINDOWS\system32\d3d8thk.dll
0x6d6b0000 - 0x6d6c3000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\net.dll
0x6d4f0000 - 0x6d515000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\jpeg.dll
0x47cf0000 - 0x47d00000      C:\Program Files\NATEON\BIN\NateOnHook40u.dll
0x6d6d0000 - 0x6d6d9000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\nio.dll
0x6c000000 - 0x6c02a000      C:\WINDOWS\SoftCamp\SDS\ASCore.dll
0x6d250000 - 0x6d273000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\dcpr.dll
VM Arguments:
jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:9607 -Xms1G -Xmx1G -Xss256K -Dlog4j.configuration=file:D:/Project_Work/etc/log4j.xml -Dfile.encoding=MS949
java_command: kosmos.KosmosApp yslee bnp
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_22
CLASSPATH=.;C:\Program Files\Java\j2re1.4.2_11\lib\ext\QTJava.zip
PATH=C:\Program Files\Java\jdk1.6.0_22\jre\bin;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ESTsoft\ALZip;C:\Program Files\Java\jdk1.6.0_22\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\ESTsoft\ALZip;C:\Program Files\IDM Computer Solutions\UltraEdit\
USERNAME=20964
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2062180k(626912k free), swap 4004456k(1282796k free)
vm_info: Java HotSpot(TM) Client VM (17.1-b03) for windows-x86 JRE (1.6.0_22-b04), built on Sep 15 2010 00:56:36 by "java_re" with MS VC++ 7.1 (VS2003)
time: Tue Jan 11 16:39:14 2011
elapsed time: 43 seconds

thank you for your reply.
I tried to update my video driver, but also happened this.
my client told me to update registry authorization of javaSoft to Administrator's authorization.
so I will try to do this.
I will update this to you.

Similar Messages

  • How can i execute java program in JSP ?

    att
    thanks

    try to use:
    Runtime.getRuntime().exec("command line");
    where "command line" is your command to execute your program.

  • Execute Java Program in a specific time everyday

    Hi All,
    I need help for Execute Java Program in a specific time everyday.
    I want to do insert data into database every 3:00 AM everyday.
    I thought there is a one thread program will do. It is correct my understanding? Please let me know and guide me How can I do?
    Thanks
    Amit

    If you are using Window$ then you can create a bat file to execute the program and place the bat file in Scheduled Tasks.

  • How to execute java programs in xcode

    I cannot execute Java program in XCode for Mountain Lion 10.8.2. Please help me how to execute a Java program.

    Do you have a particular error or message or diagnostic or issue, or something that's particularly wrong with Xcode?  If installed, Java does work, and Java applications can be invoked.
    Background: Java was deprecated from OS X a while back, and Java itself was removed from the default OS X 10.8 installation.
    Given that Java is now an add-on for OS X, you'll want to check with Oracle — the owner of Java — for OS X kits and tools.
    I don't know off-hand if Xcode still particularly supports Java (it was pretty weak, when last I checked), but I'd expect you'll be using makefiles for the work, and I'd also suspect that whatever Java support remains in Xcode will probably be going away in some future version of Xcode.   (If support hasn't already disappeared.  You may be using bash build scripts and makefiles to deal with Java now, or going forward.)
    If you don't have access to the Apple developer forums and the discussions of tools available there, then the archives of the Apple Java-Dev mailing list can be a good spot to look for existing discussions, and to post questions related to Java development on OS X.
    As for IDEs other than Xcode,  Eclipse or NetBeans or IntelliJ IDEA, and BlueJ all run on OS X, and any of these would probably be a better long-term choices for Java development on OS X.

  • Can someone execute this program?

    Can someone execute this program for me and tell me if it works correctly? My DOS is acting funny.
    look for these things:
    - accepts input from keyboard and places them into an array
    - continues to accept names until a blank name is entered
    - array can contain up to 15 names
    - after all names are entered, it displays the contents of the array
    and writes them to a file
    - output should be in 2 columns
    if you see a problem, please tell me how to fix it.
    import java.io.*;
    * the purpose of this program is to read data from the keyboard
    * and put it into a sequential file for processing by ReadFile
    * @author Maya Crawford
    public class Lab0
    * this function will prompt and receive data from the keyboard
    * @return String containing the data read from the keyboard
    * @param BufferedReader that is connected to System.in
    */ (keyboard)
    public static String getData(BufferedReader infile)
    throws IOException
    System.out.println("enter a name");
    return infile.readLine();
    * this is the main program which will read from the keyboard and
    * display the given input onto the screen and also write the data
    * to a file
    * @param Array of Strings (not used in this program)
    public static void main(String[] args)
    throws IOException
    int i;
    String[] outString = new String[16];
    DataOutputStream output=null;
    // this code assigns the standard input to a datastream
    BufferedReader input= new BufferedReader(new InputStreamReader(System.in));
    // this code opens the output file...
    try
    output= new DataOutputStream(new FileOutputStream("javaapp.dat"));
    // handle any open errors
    catch (IOException e)
    System.err.println("Error in opening output file\n"
    + e.toString());
    System.exit(1);
    // priming read......
    for(i=0;i<outString.length;i++)
    outString=getData(input);
    // this is the loop to continue while nnonblank data is entered
    while (!outString.equals(""))
    for(i=0;i<outString.length;i++)
    outString[i]=getData(input);
    outString[i] = input.readLine();
    System.out.println("Name entered was:"+ outString[i]);
    output.writeBytes(outString[i]+"\r\n");
    int rcol=(outString.length+1)/2;
    for(i=0;i<(outString.length)/2;i++)
    System.out.println(outString[i]+"\t"+outString[rcol++]);
    // flush buffers and close file...
    try
    output.flush();
    output.close();
    catch (IOException e)
    System.err.println("Error in closing output file\n"
    + e.toString());
    // say goodnight Gracie...
    System.out.println("all done");

    Ok, here is what I came up with. I commented most of what I changed and gave a reason for changing it. My changes aren't perfect and it still needs to be tweeked. When you run the program you have to hit the enter key every time once before you type a name. When you are done typing names hit the enter key twice and it will output the names entered into the array. Like I said, it isn't perfect, and that part you will need to fix.
    import java.io.*;
    * the purpose of this program is to read data from the keyboard
    * and put it into a sequential file for processing by ReadFile
    * @author Maya Crawford
    public class Lab0
         * this function will prompt and receive data from the keyboard
         * @return String containing the data read from the keyboard
         * @param BufferedReader that is connected to System.in
         */ //(keyboard)
         //On the above line where you have (keyboard), it wasn't commented out in your
         //program and it was throwing a error.
         public static String getData(BufferedReader infile)
         throws IOException
              System.out.println("enter a name");
              return infile.readLine();
         * this is the main program which will read from the keyboard and
         * display the given input onto the screen and also write the data
         * to a file
         * @param Array of Strings (not used in this program)
         public static void main(String[] args)
         throws IOException
              int i;
              String testString; // Created to hold the string entered by the user, because your
                                 // outString array wasn't working for that.
              String[] outString = new String[16];
              DataOutputStream output=null;
              // this code assigns the standard input to a datastream
              BufferedReader input= new BufferedReader(new InputStreamReader(System.in));
              // this code opens the output file...
              try
                   output= new DataOutputStream(new FileOutputStream("javaapp.dat"));
              // handle any open errors
              catch (IOException e)
                   System.err.println("Error in opening output file\n"
                   + e.toString());
                   System.exit(1);
              // priming read......
              testString = " ";  // Initialize testString
              int placeMark = 0; // to input the String entered by the user into the outString
                                 // array, it needs to know which position to enter it into.
              while (!testString.equals(""))
                   testString=getData(input);
                   testString = input.readLine();
                   System.out.println("Name entered was:"+ testString);
                   // Put the testString into the outString[] array.
                   // A lot of the time when you used outString you forgot to use the [x] to indicate
                   // which position you wanted to access.
                   outString[placeMark] = testString;
                   output.writeBytes(testString+"\r\n");
                   placeMark++;
            // Created a do/while loop to display the list of outString.
              int nextEntry = 0;
              do
                   System.out.println(outString[nextEntry]);
                   nextEntry++;
              }while(!outString[nextEntry].equals(""));
              // flush buffers and close file...
              try
                   output.flush();
                   output.close();
              catch (IOException e)
                   System.err.println("Error in closing output file\n"
                   + e.toString());
              // say goodnight Gracie...
              System.out.println("all done");
    }

  • How to request Administrator or root to execute java programs?

    How to request Administrator or root to execute java programs when the user is not enough permission?
    as same as following image:
    Windows : http://img151.imageshack.us/img151/6113/winrw5.gif
    Linux: http://img374.imageshack.us/img374/8990/linuxsj4.png
    Edited by: lauangus on 2008?10?13? ??9:15

    Dear Sys Admin,
    Would you please grant me and my group enough rights to do the tasks that have been assigned to us, we are using the following programs. They will need to asccess....
    Sincerely,
    lauangus
    Note: this will usually have to be accompanied by appropriate supervisor signatures and endorsements.

  • Can i run java program in the same way of .exe program?

    I am beginner in java and i'd like to know that java program can run in the same of .exe program(double click program icon) , instead of typing "java [class name]" or
    choose execute botton from forteCE.
    Thank you for your help
    [email protected]

    You can write a .bat script which launches the java command for you:
    @echo off
    java <your prog name here>
    Then move your .bat file icon wherever you want...
    bye
    Michele
    Tip: if you don't want to see the black VM window, try javaw instead of java.

  • Can't run java programs

    I'm having trouble getting java programs to run on my computer. I have no problem compiling programs but whenever i try to run them through the command prompt window i get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: hello
    where 'hello' is the name of the 'hello world' test program i made (just prints the words 'hello world' world on screen.)
    The programs run on eclipse but i really prefer using the good old command prompt window. Can anyone explain to me what's wrong here (I'm guessing it's some sort of windows/java sdk setting that must be off.) Thanks in advance!!!

    I thought that this was resolved a couple days ago but apparently it wasn't (it was the temporary fix that was working.)
    I still get the same noclasseffounderror whenever i try to run the java program. The link tells me to add the correct 'path' to the system folder to make it work. It's actually already there (otherwise the javac command wouldn't work either.) However, the java programs do run whenever i execute the command
    set classpath=
    However, i have to do this every single time i open up a new shell window. Anybody know what the problem could be given that it works when i 'clobber it into working' as the tutorial put it?

  • Creating an executable java program

    hello every body
    i have finished my java program
    and i want to ask if there is some software that create a .exe of your project or make your projecte installable.
    for the moment i use javaexe but it's not really good
    do someone have an idea.

    That's the question most people ask.Actually this
    proccess is againts the goal of java for being a
    platform independent programing lang,That's an urban legend I haven't heard in a while -:)
    How can the generation of a native executable out of a Java source be against the goals of Java? Has the source code been contaminated in any way in the process? Is it now less portable than before? The native executable itself isn't portable of course but that's kind of the point of producing one, and it doesn't restrict the portability of the program itself.

  • Can't run java program with GUI

    My computer can run java program properly.
    However, for those program with GUI (using swing),
    my computer is unable to display the GUI.
    What's wrong with it? Is there any PATH I need to set before running GUI program?
    Thanks
    icedgold

    Cut, copy, paste then compile and run this;-import java.awt.*;
    import javax.swing.*;
    public class MyJFrame extends JFrame {
      public MyJFrame() {
          super("My first JFrame");
          Container c  = getContentPane();
          JPanel panel = new JPanel();
          panel.setBackground(Color.white);//  (new Color(255, 255, 255));
          JLabel jl = new JLabel("Yes it works");
          panel.add(jl);     
          c.add(panel);
      public static void main(String[] args) {
        MyJFrame frame = new MyJFrame();
        frame.setSize(180,120);
        frame.setLocation(200, 300);
        frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
        frame.setVisible(true);
    }

  • Shell script for executing java program

    i want to write a shell script which will export the classpath and compile & run the java program.
    any references from where i can get that?

    Try typing "man sh" at the command prompt.
    Ultimately it'll end up looking a lot like this:
    #!/bin/sh
    CLASSPATH=/path/to/a.jar:/path/to/anther.jar
    JAVA_HOME=/path/to/where/you/installed/java
    $JAVA_HOME/bin/java your.classes.package.YourClass

  • Executing java program in oracle

    Good day everyone!
    I created a small java program.
    import javax.swing.JOptionPane;
    public class LogOn {
    public static void main (String [] args) {}
    public static void ShowMessage(){
    JOptionPane.showConfirmDialog(null, "Hello", "Info", JOptionPane.PLAIN_MESSAGE);
    I compiled the code using javac and loaded into oracle using "loadjava -u scott/tiger Logon
    Then I created a procedure,
    create or replace procedure l_b
    as language java
    name 'LogOn.showMessage()';
    then I executed the procedure
    SQL> execute l_b;
    it's just say
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Any idea why its doing that?
    Thanks for the time
    Edited by: Xtro on Oct 30, 2008 9:38 AM

    What is the "warning banner" attempting to communicate? And where did this requirement come from-- presumably users are not seeing a banner when they log in today.
    Realistically, you are not going to be able to cause arbitrary client applications to display something, you are going to have to configure each client application separately, which seems like a huge investment of time for very marginal benefits assuming that government agencies have a decent number of client machines and a decent variety of client applications. The glogin.sql file will work for SQL*Plus (assuming very recent versions or that no one uses the "connect" command to connect to a different database), but I believe you are looking for something that works across client applications, which probably doesn't exist.
    Justin

  • Can't execute java from prompt command. . .

    hello!
    that's the following:
    I'm trying to execute
    "java Teste.class "
    from prompt command and it throws:
    Exceptio in thread "main" java.lang.NoClassDefFoundError
    in thread main. The Teste.java file is compiled finely using
    "javac Teste.java"
    My enviroment variables are cofigured this way:
    NAME: JAVA_HOME VALUE: C:\Arquivos de programas\Java\jdk1.5.0_03
    NAME: PATH VALUE: C:\Arquivos de programas\Java\jre1.5.0_03\bin
    NAME: CLASSPATH VALUE: C:\Arquivos de programas\Java\jre1.5.0_03\lib
    the vm and jdk directory is this:
    C:\Arquivos de programas\Java\jdk1.5.0_03
    C:\Arquivos de programas\Java\jre1.5.0_03
    and the Teste.java is:
    package teste;
    public class Teste{
        public Teste(){
            System.out.println("Testando, Testando, Testando");         
        public static void main(String[] args){
            Teste exe = new Teste();
    }So if you have any suggestion, please post it. Thanks!!

    Soneca,
    You're a complete idiot.
    Along with crossposting every question you have you often respond like this in threads. Just a complete jacka$$.
    I'll be sure to ignore you in future other than to point out your crossposts when I find them of course.
    This previous thread of yours (cross posted as always [in 4 forums!!!]) really is demonstrative of the fundamental deepness of your nitwittery
    http://forum.java.sun.com/thread.jspa?threadID=764824

  • Can't execute java from prompt command on xp. . .

    hello!
    that's the following:
    I'm trying to execute
    "java Teste.class "
    from prompt command and it throws:
    Exceptio in thread "main" java.lang.NoClassDefFoundError
    in thread main. The Teste.java file is compiled finely using
    "javac Teste.java"
    My enviroment variables are cofigured this way:
    NAME: JAVA_HOME VALUE: C:\Arquivos de programas\Java\jdk1.5.0_03
    NAME: PATH VALUE: C:\Arquivos de programas\Java\jre1.5.0_03\bin
    NAME: CLASSPATH VALUE: C:\Arquivos de programas\Java\jre1.5.0_03\lib
    the vm and jdk directory is this:
    C:\Arquivos de programas\Java\jdk1.5.0_03
    C:\Arquivos de programas\Java\jre1.5.0_03
    and the Teste.java is:
    package teste;
    public class Teste{
        public Teste(){
            System.out.println("Testando, Testando, Testando");         
        public static void main(String[] args){
            Teste exe = new Teste();
    }So if you have any suggestion, please post it. Thanks!!

    try
    java -cp <Location_of_Teste.class> Teste
    Message was edited by:
    sssow
    Message was edited by:
    sssow

  • Execute java program on UNIX

    I have no experience on Unix and I now need to try to execute my java program on UNIX server to which I connect using telnet. I have copy my source file to the server and I could run the javac command to compile my source code.
    In the current directory, I just execute "javac mySource.java"
    And I got my .class file on the same directory. But when I tried to execute "java mySource", I got NoClassDefFoundError. I think it has something to do with classpath. But I just don't know how to do it in UNIX. Please someone assist me. Thanks.

    Or setenv CLASSPATH $CLASSPATH:/your/classpath/here if you are running csh.

Maybe you are looking for

  • Filename in Media Encoder CC

    Hello there ;-) In After Effect CC u can render picture sequences using a filname like: "Project_[#####].jpg". The [#####] is replaced by the framenumber when rendering. When i render a picture sequenc in Media Encoder CC i Don´t have that oportunity

  • Print open office report

    Hi, I would like to print an Open Office report but I have a problem. I found a prototype of an Open Office that I modified. It is working but I have a problem when I want to print a report. An error occurs Error -2146827850 Exception occured in OOCA

  • How to delete other people's music from my itunes account

    I had a lodger for around 6 months who used my PC to play music. Whilst doing so, he created his own account and downloaded music in to my Library. Every so often I will come across a song that wants his iTunes login.  I would like to delete all musi

  • [G575] CD/DVD drive disappeared - no longer recognized in Windows

    I have a Lenovo G575 that I have had for a couple of years now. Within the past week the CD/DVD drive has disappeared. If I go to device manager it is not listed. I went through the regedit and tried to delete all the upper/lower filters in the regis

  • Sample code and tutorial for JSR188 (CC/PP) ?

    Hi there, I would be grateful if you could show me the way!!! :) Just some URL's would be find. I just want to learn how to use the JSR188 API. Thanks anyone, Stavros.K.