Java Run Help
I just started learning Java yesterday. I haven?t programmed since Basic. I wrote the first sample code from the training material and compiled it successfully. When I try and run the .class file I get what is shown in the screenshot below. I tried the code from my work computer and it ran just fine. Does anyone know what the error in the screenshot means?
Screenshot
Here is the code:
import java.awt.Frame;
import java.awt.Label;
public class HowdyWindow extends Frame {
public static void main(String arg[]) {
new HowdyWindow();
HowdyWindow() {
Label label;
label = new Label("Howdy!");
add(label);
pack();
show();
}Edited by: madlduke on Jun 4, 2010 7:49 PM
Edited by: madlduke on Jun 4, 2010 7:52 PM
It means what it says: it can't find the classes. The JVM uses a list of places to look for class files, called the "classpath". You have to tell it what that list is, otherwise it can't find the files.
Try this:
java -cp . HowdyWindowas long as you're in the directory where the class files are, it should work (at least it should find and try to run the class). -cp is an alias for -classpath; you can use either.
By the way, you should put the error message in your post rather than linking to a screenshot. Just cut-and-paste it into your post.
Similar Messages
-
I have downloaded j2sdk1.4.0-beta 3 onto my computer which operates on windows 98. the install wizard installed the program and created a folder j2sdk1.4.0-beta 3. If I click on this it opens to reveal other folders, but when clicking on these they continue through and nothing ends up happening.
I have tried to follow the installation notes on the website and it discussed setting the path through the autoexec.bat. Now, this did not come up as a dos prompt set up, but rather a window under the system reconfigure window (and a bunch of others). the autoexec window started off
@ECHO OFF
SET BLASTER=A220 15 DI
LH C:\WINDOWS COMMAND\DOSKEY
So I am not even sure if this is where I am supposed to be and don't want to reset something that will effect the rest of my system.
I've spent several hours trying to figure this out and can't get java running, if anyone can help It would be greatly appreciated!!!! Thanks in advance!!You need to set up the autoexec.bat file so msdos knows where to look for the javac.exe (compiler) and java.exe (run time enviroment) and other such fun stuff.
To do this is fairly straight forward - if the JDK root directory is on your c: drive in the folder jdk1.2.2, so the path name for that folder would look like "C:\jdk1.2.2". To tell msdos where the compilers and such are add the following (changing the JDK pathname if JDK is in a different location on the c drive):
SET CLASSPATH=.;C:\
PATH=C:\JDK1.2.2\BIN
Now, when you open the command line/msdos prompt you will need to run the autoexec.bat file, so in the case above, it will look in "C:\JDK1.2.2\BIN" when you run javac, java, jardoc etc.... To run it type "autoexec.bat" whilst in the same directory as the autoexec.bat in msdos - you will need to do this each time you activate the msdos prompt - how to set it up so it does it automatically i don't know.
You don't need to change anything else in the autoexec.bat file, and you can copy the autoexec.bat into the directory in which you are developing the java code. You will need to leave the orginal for other programs to use.
As for opening the JDK folders and your computer not doing anything, i think their maybe a problem with the computer itself............ -
Installation problem w/ Java Run Time Environment 1.2.2
Steps to reproduce error:
1.On Windows 98 I install Java Run Time Environment 1.2.2
2.I try to launch Java Plug-in Control Panel from Windows Start menu
Error message:
JAVAW caused an invalid page fault in
module SYMCJIT.DLL at 0167:500bf974.
Registers:
EAX=00000e03 CS=0167 EIP=500bf974 EFLGS=00010206
EBX=006538e0 SS=016f ESP=0063f838 EBP=00000e7f
ECX=0000009f DS=016f ESI=00000e7f FS=0e77
EDX=00000003 ES=016f EDI=05110010 GS=0000
Bytes at CS:EIP:
f3 a5 ff 24 95 48 42 0c 50 8d 49 00 8d 74 31 fc
Stack dump:
500bf8c7 0000027f 500c42b0 5007cc24 05110010 00000e7f 0000027f 00760ab0 00000283 0069a4a8 006538e0 0063f8e4 00653928 05110010 006538e0 00000e7f
Is there a fix for this?
Thanks
-DKThis dll does not recognise the Pentium 4 processor. You need to update the JRE. It is a well recognised problem. Search the forums (and Google) using "symcjit pentium 4" to obtain more information.
Hope this helps.--
<sig> http://www.itswalky.com http://www.crfh.net </sig> -
Java Access Helper Jar file problem
I just downloaded Java Access Helper zip file, and unzipped, and run the following command in UNIX
% java -jar jaccesshelper.jar -install
I get the following error message, and the installation stopped.
Exception in thread "main" java.lang.NumberFormatException: Empty version string
at java.lang.Package.isCompatibleWith(Package.java:206)
at jaccesshelper.main.JAccessHelperApp.checkJavaVersion(JAccessHelperApp.java:1156)
at jaccesshelper.main.JAccessHelperApp.instanceMain(JAccessHelperApp.java:159)
at JAccessHelper.main(JAccessHelper.java:39)
If I try to run the jar file, I get the same error message.
Does anyone know how I can fix this?
ThanksCross-posted, to waste yours and my time...
http://forum.java.sun.com/thread.jsp?thread=552805&forum=54&message=2704318 -
�� I have a java applet program (yanhua.java) need help!!!
�� I have a java applet program (yanhua.java) that use mouse click a area show a fireworks, the applet program that a java fan mail me. Now i find some bug in the program, can you help me? thank in advance!
The backdrop of the question: The yanhua.java applet program works well. But one day, i install j2re 1.4.1 plugin for my microsfot Internet Explorer, i run the yanhua.java applet program again, it show difficult(i move my mouse in the area, slowness), the fireworks is not fluent. Then i try my best to find the cause , i get some information, the following: yanhua.java run in j2re 1.4.1 plugin,it will deplete 100% cpu; else yanhua.java does not run in j2re 1.4.1 plugin, it will deplete 90%--95% cpu too; but my computer c3 1G cpu and 256MB memory, without running other program at that time. So i can have the assurance to say that the yanhua.java have some bug or error. can you help me to find all bug in yanhua.java? thank you very much!!!
i want to solve the question: finding all bug in yanhua.java
NOTE:
1��fireworks show specially good effect(a yanhua.java applet) you can look at:
http://www.3ren.net/down/java/yanhua.html
2��all program you can get from http://www.3ren.net/down/java/yanhua.rar
/*************************yanhua.java******************************
import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.*;
import java.awt.image.MemoryImageSource;
import java.util.Random;
public class yanhua extends Applet
implements Runnable
private int m_nAppX;
private int m_nAppY;
private int m_centerX;
private int m_centerY;
private int m_mouseX;
private int m_mouseY;
private int m_sleepTime;
private boolean isError;
private boolean m_isPaintFinished;
boolean isRunning;
boolean isInitialized;
Thread runner;
int pix0[];
MemoryImageSource offImage;
Image dbImg;
int pixls;
int pixls2;
Random rand;
int bits;
double bit_px[];
double bit_py[];
double bit_vx[];
double bit_vy[];
int bit_sx[];
int bit_sy[];
int bit_l[];
int bit_f[];
int bit_p[];
int bit_c[];
int bit_max;
int bit_sound;
int ru;
int rv;
AudioClip sound1;
AudioClip sound2;
public yanhua()
m_mouseX = 0;
m_mouseY = 0;
m_sleepTime = 5;
isError = false;
isInitialized = false;
rand = new Random();
bits = 10000;
bit_px = new double[bits];
bit_py = new double[bits];
bit_vx = new double[bits];
bit_vy = new double[bits];
bit_sx = new int[bits];
bit_sy = new int[bits];
bit_l = new int[bits];
bit_f = new int[bits];
bit_p = new int[bits];
bit_c = new int[bits];
ru = 50;
rv = 50;
public void init()
String s = getParameter("para_bits");
if(s != null)
bits = Integer.parseInt(s);
s = getParameter("para_max");
if(s != null)
bit_max = Integer.parseInt(s);
s = getParameter("para_blendx");
if(s != null)
ru = Integer.parseInt(s);
s = getParameter("para_blendy");
if(s != null)
rv = Integer.parseInt(s);
s = getParameter("para_sound");
if(s != null)
bit_sound = Integer.parseInt(s);
m_nAppX = this.getSize().width;
m_nAppY = this.getSize().height;
m_centerX = m_nAppX / 2;
m_centerY = m_nAppY / 2;
m_mouseX = m_centerX;
m_mouseY = m_centerY;
resize(m_nAppX, m_nAppY);
pixls = m_nAppX * m_nAppY;
pixls2 = pixls - m_nAppX * 2;
pix0 = new int[pixls];
offImage = new MemoryImageSource(m_nAppX, m_nAppY, pix0, 0, m_nAppX);
offImage.setAnimated(true);
dbImg = createImage(offImage);
for(int i = 0; i < pixls; i++)
pix0[i] = 0xff000000;
sound1 = getAudioClip(getDocumentBase(), "firework.au");
sound2 = getAudioClip(getDocumentBase(), "syu.au");
for(int j = 0; j < bits; j++)
bit_f[j] = 0;
isInitialized = true;
start();
public void run()
while(!isInitialized)
try
Thread.sleep(200L);
catch(InterruptedException interruptedexception) { }
do
for(int j = 0; j < pixls2; j++)
int k = pix0[j];
int l = pix0[j + 1];
int i1 = pix0[j + m_nAppX];
int j1 = pix0[j + m_nAppX + 1];
int i = (k & 0xff0000) >> 16;
int k1 = ((((l & 0xff0000) >> 16) - i) * ru >> 8) + i;
i = (k & 0xff00) >> 8;
int l1 = ((((l & 0xff00) >> 8) - i) * ru >> 8) + i;
i = k & 0xff;
int i2 = (((l & 0xff) - i) * ru >> 8) + i;
i = (i1 & 0xff0000) >> 16;
int j2 = ((((j1 & 0xff0000) >> 16) - i) * ru >> 8) + i;
i = (i1 & 0xff00) >> 8;
int k2 = ((((j1 & 0xff00) >> 8) - i) * ru >> 8) + i;
i = i1 & 0xff;
int l2 = (((j1 & 0xff) - i) * ru >> 8) + i;
int i3 = ((j2 - k1) * rv >> 8) + k1;
int j3 = ((k2 - l1) * rv >> 8) + l1;
int k3 = ((l2 - i2) * rv >> 8) + i2;
pix0[j] = i3 << 16 | j3 << 8 | k3 | 0xff000000;
rend();
offImage.newPixels(0, 0, m_nAppX, m_nAppY);
try
Thread.sleep(m_sleepTime);
catch(InterruptedException interruptedexception1) { }
} while(true);
public void update(Graphics g)
paint(g);
public void paint(Graphics g)
g.drawImage(dbImg, 0, 0, this);
public void start()
if(isError)
return;
isRunning = true;
if(runner == null)
runner = new Thread(this);
runner.start();
public void stop()
if(runner != null)
runner.stop();
runner = null;
public boolean mouseMove(Event event, int i, int j)
m_mouseX = i;
m_mouseY = j;
return true;
public boolean mouseDown(Event event, int i, int j)
m_mouseX = i;
m_mouseY = j;
int k = (int)(rand.nextDouble() * 256D);
int l = (int)(rand.nextDouble() * 256D);
int i1 = (int)(rand.nextDouble() * 256D);
int j1 = k << 16 | l << 8 | i1 | 0xff000000;
int k1 = 0;
for(int l1 = 0; l1 < bits; l1++)
if(bit_f[l1] != 0)
continue;
bit_px[l1] = m_mouseX;
bit_py[l1] = m_mouseY;
double d = rand.nextDouble() * 6.2800000000000002D;
double d1 = rand.nextDouble();
bit_vx[l1] = Math.sin(d) * d1;
bit_vy[l1] = Math.cos(d) * d1;
bit_l[l1] = (int)(rand.nextDouble() * 100D) + 100;
bit_p[l1] = (int)(rand.nextDouble() * 3D);
bit_c[l1] = j1;
bit_sx[l1] = m_mouseX;
bit_sy[l1] = m_nAppY - 5;
bit_f[l1] = 2;
if(++k1 == bit_max)
break;
if(bit_sound > 1)
sound2.play();
return true;
public boolean mouseExit(Event event, int i, int j)
m_mouseX = i;
m_mouseY = j;
return true;
void rend()
boolean flag = false;
boolean flag1 = false;
boolean flag2 = false;
for(int k = 0; k < bits; k++)
switch(bit_f[k])
default:
break;
case 1: // '\001'
bit_vy[k] += rand.nextDouble() / 50D;
bit_px[k] += bit_vx[k];
bit_py[k] += bit_vy[k];
bit_l[k]--;
if(bit_l[k] == 0 || bit_px[k] < 0.0D || bit_py[k] < 0.0D || bit_px[k] > (double)m_nAppX || bit_py[k] > (double)(m_nAppY - 3))
bit_c[k] = 0xff000000;
bit_f[k] = 0;
} else
if(bit_p[k] == 0)
if((int)(rand.nextDouble() * 2D) == 0)
bit_set((int)bit_px[k], (int)bit_py[k], -1);
} else
bit_set((int)bit_px[k], (int)bit_py[k], bit_c[k]);
break;
case 2: // '\002'
bit_sy[k] -= 5;
if((double)bit_sy[k] <= bit_py[k])
bit_f[k] = 1;
flag2 = true;
if((int)(rand.nextDouble() * 20D) == 0)
int i = (int)(rand.nextDouble() * 2D);
int j = (int)(rand.nextDouble() * 5D);
bit_set(bit_sx[k] + i, bit_sy[k] + j, -1);
break;
if(flag2 && bit_sound > 0)
sound1.play();
void bit_set(int i, int j, int k)
int l = i + j * m_nAppX;
pix0[l] = k;
/*********************************end*******************************no one help me???????????
-
I just downloaded Java Access Helper zip file, and unzipped, and run the following command in UNIX
% java -jar jaccesshelper.jar -install
I get the following error message, and the installation stopped.
Exception in thread "main" java.lang.NumberFormatException: Empty version string
at java.lang.Package.isCompatibleWith(Package.java:206)
at jaccesshelper.main.JAccessHelperApp.checkJavaVersion(JAccessHelperApp.java:1156)
at jaccesshelper.main.JAccessHelperApp.instanceMain(JAccessHelperApp.java:159)
at JAccessHelper.main(JAccessHelper.java:39)
If I try to run the jar file, I get the same error message.
Does anyone know how I can fix this?
Thankssorry ab the multiple post, it was urgent for me to
know the answer.
I've JDK 1.4.2 and JAccessHelper should work with 1.3
or later
Can there be some kind of path problems?No, I doubt it. It's just some internal app failure - looks like it's trying to determine the running Java version, and is not doing a good job at it. But the failure has nothing per se to Java, it's that specific app - what are we supposed to know about that app though? -
My jdeveloper11 offten collapse and quit when running, help me!! thanks
my jdeveloper11 offten collapse and quit when running, help me!! thanks
thanks to all.
error info in file hs_err_pid656.txt-------------
# An unexpected error has been detected by Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d905dc3, pid=656, tid=1788
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode windows-x86)
# Problematic frame:
# V [jvm.dll+0x95dc3]
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
--------------- T H R E A D ---------------
Current thread (0x03272000): VMThread [stack: 0x03300000,0x03400000] [id=1788]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000008
Registers:
EAX=0x00000008, EBX=0x000000d0, ECX=0x033ffc40, EDX=0x37236024
ESP=0x033ffa04, EBP=0x033ffa98, ESI=0x37236024, EDI=0x033ffc40
EIP=0x6d905dc3, EFLAGS=0x00010283
Top of Stack: (sp=0x033ffa04)
0x033ffa04: 37236020 37235e00 6d902d48 37236024
0x033ffa14: 37236020 00000018 37235e00 37235e90
0x033ffa24: 6d9028fa 033ffa98 37235e00 000000d0
0x033ffa34: 37235e90 37236140 37236140 033ffa98
0x033ffa44: 6d878634 000000ac 033ffa98 37235e00
0x033ffa54: 000000d0 6d9efc4d 37235e90 033ffa98
0x033ffa64: 37235e00 000000d0 37235e00 00c3fe30
0x033ffa74: 37235e00 37236000 6d9efa6b 37235e00
Instructions: (pc=0x6d905dc3)
0x6d905db3: 24 08 8b 06 85 c0 57 8b f9 74 55 3b 47 1c 73 50
0x6d905dc3: 8b 08 83 e1 03 80 f9 03 75 1f 8a 0d dd b5 a7 6d
Stack: [0x03300000,0x03400000], sp=0x033ffa04, free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x95dc3]
VM_Operation (0x047acb50): GenCollectForAllocation, mode: safepoint, requested by thread 0x03ecc800
--------------- P R O C E S S ---------------
Heap
def new generation total 16960K, used 15660K [0x10030000, 0x11290000, 0x12790000)
eden space 15104K, 100% used [0x10030000, 0x10ef0000, 0x10ef0000)
from space 1856K, 29% used [0x110c0000, 0x1114b040, 0x11290000)
to space 1856K, 0% used [0x10ef0000, 0x10ef24e8, 0x110c0000)
tenured generation total 224120K, used 176661K [0x12790000, 0x2026e000, 0x30030000)
the space 224120K, 78% used [0x12790000, 0x1d4157f8, 0x1d415800, 0x2026e000)
compacting perm gen total 121856K, used 121662K [0x30030000, 0x37730000, 0x40030000)
the space 121856K, 99% used [0x30030000, 0x376ffaf0, 0x376ffc00, 0x37730000)
No shared spaces configured.
VM Arguments:
jvm_args: -Xmx512M -Xms64M -Xverify:none -XX:JavaPriority10_To_OSPriority=10 -XX:JavaPriority9_To_OSPriority=9 -XX:MaxPermSize=256M -Xbootclasspath/p:../lib/lwawt.jar -Dsun.awt.keepWorkingSetOnMinimize=true -Dide.startingArg0=D:\Oracle\Middleware\jdeveloper\jdev\bin\jdev.exe -Dide.launcherProcessId=656 -Dide.config_pathname=D:\Oracle\Middleware\jdeveloper\jdev\bin\jdev.conf -Dide.startingcwd=D:\Oracle\Middleware\jdeveloper\jdev\bin -Dide.shell.enableFileTypeAssociation=D:\Oracle\Middleware\jdeveloper\jdev\bin\jdev.exe -Dide.pref.dir.base=D:\Documents and Settings\zhang\Application Data -Dide.work.dir.base=E:\zzw_Docs
java_command: <unknown>
Launcher Type: generic
Environment Variables:
JAVA_HOME=D:\Oracle\Middleware\jdk160_05
PATH=D:\app\zhang\product\11.1.0\db_1\bin;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;D:\Program Files\ATI Technologies\ATI.ACE\;D:\Program Files\Microsoft SQL Server\80\Tools\BINN;D:\Oracle\Middleware\jdk160_05\bin;
USERNAME=zhang
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 14 Stepping 12, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Server 2003 family Build 3790 Service Pack 2
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 14 stepping 12, cmov, cx8, fxsr, mmx, sse, sse2, sse3
Memory: 4k page, physical 2095172k(799352k free), swap 4194303k(2743628k free)
vm_info: Java HotSpot(TM) Client VM (10.0-b19) for windows-x86 JRE (1.6.0_05-b13), built on Feb 22 2008 01:16:53 by "java_re" with MS VC++ 7.1
time: Wed Jan 07 20:55:43 2009
elapsed time: 970 seconds -
What are the security implications of having JAVA running on my Mac Book Pro?
What are the security implications of having JAVA running on my Mac Book Pro?
Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it — not JavaScript — in your browsers.
Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the address bar with the abbreviation "https" when visiting a secure site. -
How to setup java run time before setting up portal
Dear Experts,
To implement a portal, i need to setup java run time environment to our server. Please show me a way on how to do this.
Thanks
SPYou need to download the Java SDK for your apropriate operating system and install it as per the instructions from the provider. So, for example, with Windows you go to the Sun web site, download SDK 1..4 and then run the setup script.
-
Nothing happens when I click on REMOVE for Mozilla Firefox from the Add/Remove screen of Control Panel. I then tried to run helper.exe from the Mozilla Firefox folder in Program Files, but that wouldn't run either. Any suggestions?
== This happened ==
Just once or twice
== When I tried to uninstall Firefoxunistalled foxtab, however the window saying "want to add this pers. button to toolbar" no matter what I do I can't get it off , close firefox, remove or delete or get a new firefox download to replace it in the harddrive etc. Its locked up firefox and I have to use safari to access the web. how do I get this circular message etc. off ?
-
New to java(need help on access specifier)
hi! i am new to java.plzzzzz help me i have to make a project on access specifier's i know all theroy.but
i am unable to understand how i can define all specifiers practicly.i mean in a program.
thanks.plzzzzzzzz help methe most common project i can think of is a payroll system..
you can have real implementation of all the access specifiers
good luck -
Pascal to Java Please help me!
I am truobled in creating a validation method for the user loging in....
As I am perfect at Pascal can anyone translate the following pascla code to Java Please help me with this.
PROGRAM USERLOGIN;
TYPE
USER_TYPE = RECORD
USERNAME : STRING[15];
PASSWORD : STRING[15];
END;
USFILE = FILE OF USER_TYPE;
VAR
USER: USER_TYPE;
CKUSER: USER_TYPE;
RECFILE : USFILE;
I,J : INTEGER;
BEGIN
WRITE('ENTER USERNAME:');READLN(CKUSER.USERNAME);
WRITE('ENTER PASSWORD:');READLN(CKUSER.PASSWORD);
FILESPEC :='USERFILE.USR';
ASSIGN(RECFILE, FILESPEC);
RESET(RECFILE);
WHILE NOT EOF(RECFILE) DO
BEGIN
READ(RECFILE, USER);
IF CKUSER.USERNAME = USER.USERNAME AND CKUSER.PASSWORD = USER.PASSWORD THEN
LOGIN
ELSE
WRITE('USER NOT FOUND');
END;
END.Thank youDon't bother:
http://forum.java.sun.com/thread.jsp?forum=54&thread=539277 -
How I can enable Java ssv helper plugin silently for win7 users with IE9
here is what happens:
when I deploy java 7.21 on win7 users, after deployment when users try to Open their IE they get a login screen and apparently it is related to Java ssv helper plugin. it is trying to enable it and needs admin account/password. I am trying to deploy this to about 3000 computers and I dont want all of them start calling helpdesk for this.
your help is appreciated.The following article describes how to create a shared preference file. You can either create preferences that individual users can override, or create locked preferences that individual users cannot override.
http://kb.mozillazine.org/Lock_Prefs
(Note: I don't have any personal experience with these files, but another volunteer might post some additional tips and tricks.) -
How java runs in command prompt and why java runs on it
how java runs in command prompt and why java runs on it
command prompt was used before the development of IDEs like RAD,eclipse etc.
its still used for better understanding of the compilation and errors.
type the java file and save the file(source file) in the bin folder of ur jdk environment with extension .java. the source file must be the one that has the main method declared.
in the cmd prompt screen , set the path of bin folder.
eg:C:/program files/jdk(some version)/bin/...
for compilation,type:
javac (source file_name).java and press enter
for running the file:
java source file_name -
Help .. I need to call Exe program from java & run it quickly
Hi...
I have an Exe program ..
when it run in windows ( called by windows ) it takes 300 M.S
but when we called it in java It takes 3000 M.S .. Why..
where is the problem ..
... Help please
Thank u..What are you doing with the input and output streams of the spawned process?
Maybe you are looking for
-
Is it possible to backup LR keywords without export/import?
Hi everyone, I know that I can periodically export my entire keyword list as a .txt file, and that from this I could subsequently reimport this file in order to reconstitute the rather extensive hierarchical list I have carefully built up over the ye
-
i all, i am planning to do BW certification . i am not much conversant with the process and procedure. i would appreciate if anyone can help me on the below mentioned questions. 1) from where can i get the training material, if anyone has it please m
-
No "Load Images" button in Mail
Before I upgraded to Mavericks, I always used to see a "Load Images" button above email messages. I don't see that anymore and some of my emails contain a question mark in place of the image. I've looked everywhere to try to find a solution but no lu
-
MacBook Pro display defect?
Hi! I brought my first gen core2duo 15" MacBook Pro (March 2007.. I think) to an Apple store genius bar today. It has the SAME defect as shown in pics in this thread: http://discussions.apple.com/thread.jspa?messageID=9955601 Unfortunately, I did not
-
Setup freight for miscellaneus ship to party
Hi, I have a scenario where i need to setup freight for a certain sold to party and miscellaneous ship to party. which mean whenever a certain sold to party and miscellaneous ship to party (meaning ship to party could be anyone) a certain freight sh