Beginner to Java - running programs
I am a beginner with Java. I just installed the Bouncy Castle provider and would like to test some sample codes to see if everything is correctly installed. I downloaded a zip file that contains all of the example code. My question is: Can I run this code straight from a folder on the desktop or does it have to be placed in a certain place in order for it to compile? I thought I all I need is the provider to start using the library. Is this correct or do I need some extra files?
Thanks in advance.
notwist wrote:
I downloaded a zip file Is it a .zip file or a .jar file. If it is a .jar then you can place it anywhere you like. Add a shortcut on your desktop and double click. If it is a .zip then what type of files does it contain, .java or .class? If they are .java files then you will need to compile them before you can run the program.
Similar Messages
-
Java Running Program Slower Than Partner
I have a very peculiar issue with a program I've made for a class. We were allowed to work with a partner on this project, and I was optimizing the code to make it run faster. I got to a certain point where I couldn't think of anything else to do, and it was running at about 2.5 seconds. I added it to Dropbox for my partner to download and check out, and when he ran it, he got a time of 0.5 seconds. Same exact code.
We've tried a few things such as re-uploading from both ends to see if there was some difference. I've re-installed eclipse and tried a different version and re-installed the latest JDK. I downloaded the Eclipse IDE for Java developers. That didn't solve the issue. So then I tried compiling the program with javac from the command prompt and running the program that way. This still gave me a time of around 2.5 seconds. I ran the Windows Experience index to see if my computer could have something wrong with it, but it came up with numbers slightly better than before. So it can't be anything wrong with my actual system. I haven't noticed a decrease in performance. So this narrows everything down to the Java environment itself.
We know the program works. It's already been submitted, graded, and returned and like I said, it runs extremely efficiently on my partner's computer. I just can't think of ANY REASON at all this program is running more slowly on my computer. Have any of you encountered an issue like this? I don't want anything to plague me for future projects.
Thanks for any ideas or assistance!
-ColeThe fact that run times were supposed to be a target of around 0.5 seconds for this project is just what concerns me. Other people have achieved that time. Obviously their code is different, but the point I was trying to get across is that I wouldn't be concerned if it were a decimal difference. What concerns me is that it's seconds. You're correct. I'm using an Alienware computer and my partner has the Mac, but the difference should never be that huge. It only gets worse as we try to run more data.
The timer, like you suspected, is clocked from the system timer Java uses. We get the time when it begins and ends and subtract the difference. This is built into the program's main and is printed into an output file at the end.
I understand the thought that the systems are completely different, and I wouldn't be so worried if it were not for the comparison of data with our computers and other classmates. We have statistics other than time from the program that line up with the numbers we should expect based on the professor's approval of students output. So when those statistics are the same and the ONLY difference is the run time, that's what concerns me. And I know it's not an issue of the timer being started incorrectly because you can easily see the difference in performance when ran.
Obviously this won't mean much, but just note as the numbers increase, so do the time differences. However, the statistics are relatively the same. (The files are generated randomly)
Here's some sample data:
Partner's Output:
bin20.txt, with 20 blocks and 10 buffers...
Cache hits: 1398437
Cache misses: 9973
Disk reads: 9973
Disk writes: 9310
Run time: 536ms
My Output:
bin20.txt, with 20 blocks and 10 buffers...
Cache hits: 1397557
Cache misses: 9986
Disk reads: 9986
Disk writes: 9307
Run time: 7667ms
Partner's Ouput:
bin10.txt, with 10 blocks and 5 buffers...
Cache hits: 647388
Cache misses: 5866
Disk reads: 5866
Disk writes: 5462
Run time: 315ms
My Output:
bin10.txt, with 10 blocks and 5 buffers...
Cache hits: 646955
Cache misses: 5891
Disk reads: 5891
Disk writes: 5449
Run time: 4558ms
Hopefully this information helps clear up some things. Again, I'm just kind of baffled about this, and I don't think it's simply a problem of having different systems. -
Sourcing : Error while Running Java Concurrent Program
Hi All,
Navigations:
Application: Sourcing
Responsibility : Sourcing Buyer
Concurrent Program : Generate and Store Sourcing response spreadsheet
I am trying to run
Java Concurrent Program : Generate and Store Sourcing response spreadsheet in SRS Window,
it completed with Error status.
Please let me know How can I run this Concurrent Program with Normal status and able to view/save the Output.
Please provide resolution on this.Thanks for your reply..
Program: Generate and Store Sourcing response spreadsheet
ShortName: PON_EXPORT_RESPONSE
Application: Sourcing
Executable: ExportResponseCp
Method: Java Concurrent Program
Responsibility : Sourcing Buyer.
Has this ever worked? If yes, any changes been done recently?
=> No
Is this the seeded concurrent program or a custom one?
=> Its seeded program.
EBS: R12.1.3
Login as Sourcing Buyer Responsibility :
When you create RFQ and then Close RFQ and then create Surrogate quote and after you Export the Spreadsheet in SelfService Pages it generates the output.
But if You run the concurrent program (Generate and Store Sourcing response spreadsheet) it errors out.
Error : Exception in thread main java .lang.stringIndexOutOfBoundException:
Thanks.. -
Java.lang.OutOfMemoryError when running java concurrent program
Hi,
i had written a java concurrent program to create the content items into Oracle Content Manager (OCM). Process the records from interface table and create the content items into OCM by calling the API IBC_CITEM_ADMIN_GRP.upsert_item().
I run the concurrent program with 2000 records in interface table, it's an one to one process, 563 records are processed and 563 content items are created successfully in OCM. After 563 records continuously throws the Exception
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.put_line('EX - bundle validation others--');
x_return_status := FND_API.G_RET_STS_ERROR;
FND_MESSAGE.Set_Name('IBC', 'A_BUNDLE_ERROR');
FND_MESSAGE.set_token('SITUATION', 'VALIDATION');
FND_MSG_PUB.ADD;
IF IBC_DEBUG_PVT.debug_enabled THEN
IBC_DEBUG_PVT.end_process(
IBC_DEBUG_PVT.make_parameter_list(
p_tag => 'OUTPUT',
p_parms => JTF_VARCHAR2_TABLE_4000(
'x_return_status', '*** EXCEPTION *** [' || SQLERRM || ']'
END IF;
in IBC_CITEM_ADMIN_GRP.validate_attribute_bundle() API.
Again running the concurrent program it process another 563 records. Can any one help me to fix this issue?
i figured out the exception. When debug the error, i got the actual error message like this
ORA-29532: Java call terminated by uncaught Java exception: java.lang.OutOfMemoryError
ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
ORA-29532: Java call terminated by uncaught Java exception: java.lang.ArrayIndexOutOfBoundsException: -2048 < 0
for this issue i increased the heap memory size up to 1024MB. Still i have the same issue. Can any one help to fix the issue?ORA-29532: Java call terminated by uncaught Java
exception: java.lang.NullPointerException
ORA-29532: Java call terminated by uncaught Java
exception: java.lang.ArrayIndexOutOfBoundsException:
-2048 < 0Aren't the null pointer and arrayindexoutofbounds, the ones which you get when you are trying to read beyond your array? (example: when your loop tries to access the 563rd element in your array, since your array index starts from 0)?
May be if you can try to write out your elements in the array, you might see what it is croaking about.
Thanks,
Chiru -
Facing error wen running Java Concurrent Program to insert data into table
Hi All,
Its first time I am wrkng on Java Concurrent Programs. I created a java class with the below code:
import oracle.apps.fnd.cp.request.*;
import oracle.apps.iby.scheduler.*;
import java.sql.*;
import java.sql.Statement;
import java.sql.Connection;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.cp.request.CpContext;
import oracle.apps.fnd.cp.request.JavaConcurrentProgram;
import oracle.apps.iby.database.DBWrapper;
import oracle.apps.iby.ecapp.OraPmt;
import oracle.apps.iby.exception.Log;
import oracle.apps.iby.security.SecurityUtil;
//package oracle.apps.ibe.util.key;
//package oracle.apps.iby.scheduler;
// Referenced classes of package oracle.apps.iby.scheduler:
// SchedUtils
public class XXIBE_KeyInsert
implements JavaConcurrentProgram
public XXIBE_KeyInsert()
public void runProgram(CpContext cpcontext)
try{
String s;
oracle.apps.fnd.cp.request.ReqCompletion reqcompletion;
Connection connection;
// s = "iby.scheduler.XXIBE_keyInsert.runProgram";
reqcompletion = cpcontext.getReqCompletion();
connection = null;
OraPmt.init(cpcontext);
Log.debug("Inserting Credit Card key", 1, "XXIBE_KeyInsert.java");
byte abyte0[] = SecurityUtil.getSystemKey();
connection = cpcontext.getJDBCConnection();
Statement st = connection.createStatement();
String sql = "Insert into xxibe_scodes values ("+abyte0+")";
st.executeUpdate(sql);
connection.commit();
st.close();
connection.close();
Log.debug("done", 1, "XXIBE_KeyInsert.java");
reqcompletion.setCompletion(reqcompletion.NORMAL, "Request Completed Normal");
OraPmt.end();
SchedUtils.setSuccess(reqcompletion);
DBWrapper.closeDBConnection(connection);
catch(Exception e){
e.printStackTrace();
//reqcompletion.setCompletion(ReqCompletion.ERROR, e.toString());
I compiled the program and in the java_top/oracle/apps/../.. (in the pkg given). Now the class files and java files are in the said location. I created an executable of type "java concurent Prog" and location same as Package name.
Created a Program and assigned it to the responsibility. Having done this when i run the CP I find it ends with an error msg. The log files show the below exceptions: "java.lang.ClassNotFound Exception".
We are doing it in R12.0.6 and in Unix server. Pls help me where I am missing it. It turned to be an urgent requirement frm my end.
Thanks,
Abhishek.The Exception Stack is :
java.lang.ClassNotFoundException: oracle.apps.iby.scheduler.test.XXIBE_KeyInsert
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at oracle.apps.fnd.cp.request.Run.main(Run.java:152).
Please advice me on how to proceed. -
Running programs WINDOWS using java
Hi ,
I would appreciate if anyone could tell me how to run programs WINDOWS using JAVA language .Thank you.I am not quite sure what you mean by that, but if you want to execute a program use:
Runtime.exec(String) -
How to run another concurrent from Java Concurrent Program?
Hi,
I have one Java Concurrent Program in ebs R12.
I need to run another Java Concurrent Program when first finished.
I can not find a way to start another request from JCP.
Thanks,
msHi ,
this is an example code to check the OS before running the command :
try{
int ch;
Process proc ;
Runtime r=Runtime.getRuntime();
StringBuffer sbuf = new StringBuffer();
String dir = new String();
String osname = System.getProperty("os.name");
if(osname.equals("Windows NT") )
proc = r.exec("cmd /c dir");
if(osname.startsWith("Linux") )
proc = r.exec("df -k");
InputStream is = proc.getInputStream();
while((ch=is.read() ) != -1)
sbuf.append((char)ch);
is.close();
dir = sbuf.toString();
System.out.println(dir );
}catch(Exception e){ System.out.println(e.getMessage());}
bye
Taha -
I am not able to install or run most of the java based programs on Solaris8
I am getting java.lang.UnsatisfiedLinkError in most of the java dependent programs running on Solaris 8 box. I suspect something wrong with the Java library or files. Can anyone assist please. Thanks in advance.
./startconsole
Exception in thread "main" java.lang.UnsatisfiedLinkError: exception occurred in JNI_OnLoad
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1298)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1070)
at java.awt.Toolkit.<clinit>(Toolkit.java:1091)
at java.awt.Color.<clinit>(Color.java:188)
at javax.swing.plaf.metal.MetalTheme.<clinit>(MetalTheme.java:27)
at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(MetalLookAndFeel.java:1031)
at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1036)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:361)
at com.netscape.management.client.console.Console.common_init(Unknown Source)
at com.netscape.management.client.console.Console.<init>(Unknown Source)
at com.netscape.management.client.console.Console.main(Unknown Source)google gave me this
http://www.velocityreviews.com/forums/t126255-answer-to-unsatisfiedlinkerror-jni.html -
Hello All,
I am the new in Java 3D Programming. What should i install to run a Java 3D program?
Thanking u,
RiponDownload and install Java3D API.
-
Cannot run program "keytool": java.io.IOException
Hi,
I would like to follow the procedure to change the master password
of glassfish server hosting APEX listener
using the change-master-password subcommand, but the utility keytool
is not found:
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> /opt/glassfish3/bin/asadmin
/opt/glassfish3/bin/asadmin
Use "exit" to exit and "help" for online help.
asadmin> change-master-password mydom01
Enter the current master password> changeit
Enter the new master password> changedit
Enter the new master password again> changedit
Cannot run program "keytool": java.io.IOException: error=2, No such file or directory
Command change-master-password failed.
asadmin>
Command multimode failed.
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> which java
/usr/bin/java
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config>
All of glassfish is running fine apart from this.
keytool could be found in /usr/java/latest/bin/keytool.
Do we need to have this in the path? There is no requirement in the
install guide for this, nor did the RPM installation adjust the system
path accordingly.
Hopefully someone can tell my how things ought to be regarding keytool?
Thanks, TomHi Tom,
the procedure to change the master password of glassfish server hosting APEX listener... sounds more like a GlassFish-related topic to me. I guess you'd get the best answers for such questions in a GlassFish-related forum...
For what it's worth, I'll try my best anyway:
Cannot run program "keytool": java.io.IOException: error=2, No such file or directoryThis seems to be a pretty clear error message: keytool , which is probably used to manage the keys for GlassFish users, wasn't found. This means, you're either running on an OS that is not officially certified for GlassFish, or you GlassFish hasn't been configured properly.
You ran
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> which java
/usr/bin/java... which indicates you assume your GlassFish is running without JAVA_HOME being set. If that's true, I'd begin to setup you GlassFish properly starting with that parameter.
Anyway, you also found out that
keytool could be found in /usr/java/latest/bin/keytool.... which is not +/usr/bin+ and hence probably not in the global search path of the user on whose behalf your GlassFish is running. So, you could either create a link-set[*] for +/usr/bin/keytool+ to (finally) point to +/usr/java/latest/bin/keytool+, or you setup JAVA_HOME to be +/usr/java/latest+ .
[*] Note that depending on your OS there might be more than one stage of indirection, e.g. my Ubuntu has +/usr/bin/java+ pointing to +/etc/alternatives/java+ which is pointing to +/usr/lib/jvm/java-6-sun/jre/bin/java+ where +/usr/lib/jvm/java-6-sun/+ is pointing to the directory containing the actual JDK to be used. You'll probably find something like that on your system as well. My Ubuntu box has a link for +/usr/bin/keytool+, so I get that when running "which keytool".
Do we need to have this in the path? There is no requirement in the install guide for this, nor did the RPM installation adjust the system path accordingly.Again, this is not a GlassFish forum.
I hope my hints help you solve your problem. If they don't, please choose the appropriate forum for your next post on that topic. And I guess, giving some more information on your OS and how you manage your JDK (and which version you use) will help people there to help you.
Thanks,
Udo -
Java.io.IOException: Cannot run program "ant"
Hi all,
I'm running a Job in Hudson.
I build this job from a Hudson Master Server but the job is built in a Hudson Linux Node.
This is the result:
Started by user builder
Building remotely on Linux-Node
Updating http://150.200.20.200:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
At revision 529
Updating http://150.200.200.200:8000/mvtv_all/DESCOS/KaluModules/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
At revision 529
no change for http://159.200.300.20:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches since the previous build
no change for http://159.230.300.20:8000/mvtv_all/DESCOS/KaluModules/branches since the previous build
No emails were triggered.
[bt] $ ant -file build.xml -DSUBSYSTEM=ALL -DTARGET=makeBuild -DCRLIST= -DOWNER= -DbuildTool.patch.release=$RELEASE -DbuildTool.system=$SYSTEM -DbuildTool.patch.type=$PATCH_TYPE -DbuildTool.subsystem=ALL -DbuildTool.buildRules=pkgBuild -DbuildTool.dynamicView=$WORKSPACE/ALL -DbuildTool.compilationRules=compile -DbuildTool.patch.name=$PATCH_NAME makeBuild
FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?
java.io.IOException: Cannot run program "ant" (in directory "/hudson/buildTool/src/bt"): error=2, No existe el fichero o el directorio
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at hudson.Proc$LocalProc.<init>(Proc.java:192)
at hudson.Proc$LocalProc.<init>(Proc.java:164)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:639)
at hudson.Launcher$ProcStarter.start(Launcher.java:274)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:794)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:768)
at hudson.remoting.UserRequest.perform(UserRequest.java:114)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:283)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: error=2, No existe el fichero o el directorio
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 15 more
Do you know something about this issue?
Thanks and RegardsNo, and this is not the Hudson forums either. But see this error?
FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?Try posting that in Google and see what you get. That's basic misery solution research 101. Post the error in Google. 999/1000 times someone has already run into it before. Please learn from their experiences by reading through them. -
I am running Mac OS 10.6.7 I cannot run a java based program from the net when parental controls are set the error is The error is Load: class installer.CheckVersion 13. class not found
Then, talk to the person running the lab.
-
Vim and Eclim (Java): Run Java program in embedded terminal window
Hello all,
I'm trying to create a decent Vim setup for Java programming. I've installed Eclim, and it works alright. However, one annoyance I have is the way that Eclim runs Java programs. When run (via the :Java command in Vim), a Java program runs in a new shell instance pretty independent from Vim, and then when the program terminates (and Enter is pressed), the output is put into a new buffer at the bottom of the Vim window with the output.
The problem with this is that I must press Enter to go back to Vim after the program terminates, and then the output buffer is automatically selected even though I most likely do not care to copy any of the output.
So, this is what I would like to happen:
- I run my Java program somehow (doesn't have to be with :Java)
- A buffer containing the running program in a shell is put on the screen (if not already there)
- The program terminates, and the focus did not change to the output buffer
At the very least, I want the focus to not change to the output buffer after the program is done running.
Any ways to at least somewhat accomplish what I'm trying to get at?Trent wrote:
Yeah? I had AP CS when they first introduced the GridWorld case study. I hope you get more out of the class than I did.
I have never used Java except for that and my first CS class at university. I eventually realized that software (as a job) wasn't for me and took a route closer to EE. I still fight to avoid being called a programmer though
I like the idea of programming for a job, not necessarily "software development", something computer science-y sound good to me.
But anyway, to end on an on-topic note, I embedded gvim inside Eclipse as described here. -
Issue in Java concurrent program for Digital Signature Stamping
Hi All,
Im calling a Java concurrent program which does digital signature stamping on the PDF report generated.Program able to able to read the PDF file as input and also digital signature stored as file in the application but
ends in error in create signature method , need help in this regard.
Error:
Parameter 0 is Request id of with out Digital signature file
Parameter 1 is employee id of approver
Parameter:0:99203256
Parameter:1:1414603
$$$$ start query fileinfo with callable statment
programName>>>>>>>>BTPOPORPXML
$$$$ Without digital Signature file Name $$$
$/inst_top/finprod/apps/FINPROD_CPNQERPAAPZP10/logs/appl/conc/out/BTPOPORPXML_99203256_1.PDF
PFX File Reading Start
PFX File Reading Ends
PFX File size is: 6460 Byte size is: 6460
Elements present
java.lang.NullPointerException
at
com.lowagie.text.pdf.PdfSignatureAppearance.getAppearance
(Unknown Source)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose
(Unknown Source)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose
(Unknown Source)
at com.lowagie.text.pdf.PdfStamper.close(Unknown
Source)
at
btvl.oracle.apps.po.digsig.BTVLDigSign.runProgram
(BTVLDigSign.java:151)
at oracle.apps.fnd.cp.request.Run.main
(Run.java:157)
Edited by: 999033 on May 16, 2013 7:20 PMHi Charls,
I have successfully implemented at our end in 11i. Pl.try at your end.
v_request_id := FND_REQUEST.SUBMIT_REQUEST (passed your arguments... );
COMMIT;
IF NVL( v_request_id , 0 ) = 0 THEN
DBMS_OUTPUT.PUT_LINE( 'Item Assignment to Organization Program Not Submitted');
p_status := 'FAILURE' ;
p_err_msg := 'ERROR RAISED AFTER SUBMITTING THE IMPORT ITEM ORG.ASSIGNMENT CONCURRENT REQUEST ... ' ;
ELSE
v_finished := FND_CONCURRENT.WAIT_FOR_REQUEST
request_id => v_request_id,
interval => 0,
max_wait => 0,
phase => v_phase,
status => v_status,
dev_phase => v_request_phase,
dev_status => v_request_status,
message => v_message
LOOP
EXIT WHEN ( UPPER(v_request_phase) = 'COMPLETE' OR v_phase = 'C');
END LOOP;
HTH
Sanjay -
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............
Maybe you are looking for
-
Questions on SAP/SF PO Integration & SF BizX RBP
Dear Experts, We are implementing SAP HCM and SF. SF goes live before SAP. We'll have a transition period from Flat File upload to SAP PO integration. Would anyone have any recommendation on how to ensure a smooth seamless transition? We have tested
-
HT6378 I cant find my photo library after loading it to iCloud.
I tried to upload my library of about 2300 photos to iCloud. It only loaded about 4 photos but now I cant find the rest of my photos. What happened to them?
-
Some URLs not resolving properly when using "www" ??
I notice that occasionally that a website won't be available when I use www in the address. For example, I was updating a myspace page by adding some graphics. When I added them and viewed the page everything was fine. I came back later to view the g
-
My ipod classic is coming up with a red cross and reporting me to the itunes website, does anyone know how to fix this? I have tried to reset it however it just keeps coming back to the red cross someone please help....
-
Hi Folks, There is a strange issue. We are able to copy standard function group in ECC6 and 4.7 but we are unable to do the same in ECC 5. When we tried to copy it is giving error saying TOP include is inactive though it is active. Can any one provid