Using packages breaks batch file

Hi there, I wonder if anyone can help me here.
I've been continuing work on somebody else's previous project, and everything is fine except for the batch file used to run the program from non development. I decided to use Eclipse to develop as opposed to the previous JCreator, and Eclipse gave an error unless I used packages, however this breaks the batch file
Here's the orginal text from the batch file -
java.exe -Xmx256m -classpath C:\InsTra\JARS\ant.jar;C:\InsTra\JARS\jaxen-core.jar;C:\InsTra\JARS\jaxen-jdom.jar;C:\InsTra\JARS\jdom.jar;C:\InsTra\JARS\saxpath.jar;C:\InsTra\JARS\xalan.jar;C:\InsTra\JARS\xerces.jar;C:\InsTra\JARS\xml-apis.jar;c:\InsTra\code_files InsTra
The batch file is located in C:\InsTra, the external JARS are in a JARS subfolder, and the java and class files are in Code_files. The main class is InsTra. I get the error NoClassDefFoundError
I've tried making the last bit Code_files.InsTra in case it needed to reference the package, but I'm new to this I'm afraid so have little experience of this sort of thing.
Any help is welcome
Thanks
Daniel

Then either your compiled class is not on the classpath, or you have not used the correct class name. Or both.
The classpath must point to the root of the package hierarchy.
The class name must include the package name (which is dictated by the package line at the top of your source file).
The compiled class file must be in the correct directory.
Given the information that you have provided, your class file should have the following path:
c:\InsTra\code_files\Code_files\It should also have the following line at the top of the .java file:
pacakge Code_files;Class names are case sensitive. Remember that the class path points to the root of the package hierarchy, NOT each of the directories containing class files. For example, if your classpath is thus:
c:\fooYour class file is in:
c:\foo\foo\Spong.classWith a package of:
package foo;And you execute it with:
java -classpath c:\foo foo.SpongThen it will work. The following will not:
java -classpath c:\ foo.Spong
java -classpath c:\foo\foo Spong
java -classpath c:\foo\foo foo.Spong
java -classpath c:\foo\foo Spong.class
etc.

Similar Messages

  • Using acrobat9 un batch file

    how can i use "document/decrease file size" using a batch file to decrease a PDF file size ?

    It's not possible to launch a batch sequence from the command line. It has
    to be done manually.

  • Use CSV and batch file for net user command

    Hello Guys,
    I am trying to load domain user id's from a csv file and parse them through the net user /domain command.  I would appreciate it if someone could help me open the csv file and store each line as a variable so that it could be parsed.
    Thanks in advance.

    My apologies, I didn't notice that you specifically mentioned batch files in your question title.
    I don't have much to offer, as my batch skills are extremely rusty.
    I would personally be doing all of this via PowerShell, as the AD cmdlets can return any bit of information about your users that you'd like.
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • How to use packages and jar files for applet?

    Hi!
    My applet takes a class say a.class.
    Now this class depends on other classes that are packaged
    in a directory and put separately.
    I want to put this applet on the web.
    So how do I manage the .class files in he package.
    I have tried using jar file format.But I was not able to get it working.
    Can someone please help me?
    Thanks

    Use Archive instead of codebase:
    <APPLET CODE="MyApplet.class" ARCHIVE="MyApplet.jar" WIDTH=400 HEIGHT=300></APPLET>

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • Call batch file using IBOT

    Hi ,
    We are using OBIEE 10G
    and I need to transfer folder from one machine to another machine(both are windows) so I have written a dos command (batch file). Now I need to call this batch file from IBOT ,how I can do this. any suggestion pls.

    Hi ,
    U can use a javascript to call the batch file and attach the script to your IBOT :
    For example :
    <html><head><script type="text/javascript">function runApp(st) {  WshShell = new ActiveXObject("WScript.Shell");  WshShell.Run (st,1,false);}</script></head><body><!-- Two ways to create a link to run the app. --><font onClick="runApp('file://c:/winnt/notepad.exe');" style="cursor: hand;"><u>Notepad</u></font><br><!-- Or use <a> descriptor -->Batch File</body></html>

  • Problem wiht Running Batch File using Runtime.exec()

    I am writting one program which will create a jar file using a windows Batch file.
    The main program is in the folder "d:\CmdExec.java".
    The other one to which a jar file to be created is in the folder "e:\folder\HelloWorld.class"
    The contents inside the "e:\folder" are
    e:\folder\HelloWorld.class
    e:\folder\mainClass.txt
    e:\folder\run.bat
    The mainClass.txt contains "Main-Class: HelloWorld"
    The Run.bat file contains "jar cmf mainClass.txt HelloWorld.jar *.class"
    The coding for CmdExec.java is as follows
    import java.io.*;
    import java.awt.Desktop;
    public class CmdExec {
    public static void main(String argv[]) {
    try {
    Desktop desktop = null;
    if (Desktop.isDesktopSupported()) {
    desktop = Desktop.getDesktop();
    desktop.open(new File("e:\\folder\\run.bat"));
    catch (Exception err) {
    err.printStackTrace();
    When i double click the file e:\folder\Run.bat, it will create a jar file for HelloWorld.class.
    But, i want to create that jar file using the java program CmdExec.java.
    When i run CmdExec.java, the batch file is opened. But it shows error as "Can't find the specified file"
    But when i copy the following files to "d:\",
    e:\folder\HelloWorld.class
    e:\folder\mainClass.txt
    the jar file is created using the CmdExec.java.
    But,
    e:\folder\HelloWorld.class
    e:\folder\mainClass.txt
    these files should be in the folder"e:\folder" only.
    Can anyone Help me this Problem?
    Or Anyother way for creating a jar file for one program by using another program?
    Help me soon.............

    Try this. It's not running a bat file. You can say it almost is a bat file.
    import java.io.*;
    import java.util.Scanner;
    public class CmdExec {
        public static void main(String argv[]) {
            try {
                Process p = Runtime.getRuntime().exec("jar cmf mainClass.txt HelloWorld.jar *.class");
                Scanner s1=new Scanner(new InputStreamReader(p.getInputStream()));
                while(s1.hasNextLine())
                    System.out.println(s1.nextLine());
                p.waitFor();
                System.out.println(p.exitValue());
                if(p.exitValue()==0)
                    System.out.println("Okay");
                else
                    System.out.println("Error");
            catch (Exception ex) {
                ex.printStackTrace();
    }Run it in the same folder as mainClass.txt
    Edited by: ColacX on Aug 1, 2008 10:35 AM

  • Batch file for IE settings

    Hi everybody,
    I want to make some changes to IE settings of many PCs to be able to open a tool which willl be used by all users using the systems..
    Since same settings are to be applied to different systems. I want to create a batch file for it .
    Settings are :
    1.Go to internet Options-- security--sites--trusted sites and and the site
    https://abc.com under it
    2.Set security level for this zone as Low
    3.Check enable protected mode
    4.Go to internet options--settings--privacy and uncheck Turn on Pop-up blocker
    5.Go to tools--compatibility view settings and the site
    https://abc.com under it . Check option - display intranet sites
    in compatibility view
    I did some research on net and found that all these settings are done by changing entries in registery.
    The site http://support.microsoft.com/kb/182569 gave lot of info on what various codes mean . But since I am new to creating
    batch files , it does not help me in writing commands. Little more research showed me that my commands would be something like
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /.....................
    However I cannot use trial and error as any unwanted change to registery may cause damage to my systems .
    It would really be very helpful if anyone can help me with his/her expertise in batch files and reg files.
    My target will be for IE8/9/10/11 preview . I am assuming the commands would be same for these versions which are comparitively new.
    Thanks,
    Mani
    manISRT

    Hi,
    this is a very broad topic, with quite a few scenarios, and potentially lots of complexity.
    Here are some thoughts I have written down for you to consider:
    Firstly, you really need to understand the basics of IE Zones, and how it is that addresses are categorised into each zone.
    There are default settings for each zone, and these are initially defined by MS, but you, or the user can, and may, have changed which zone is active, in which situation.
    E.g., if you are dealing with pc's in your organisation and under your control, vs pc's not in your organisation and/or not under your control.
    For pc's which are in your organisation, are they used only inside your office network, or are they also used outside your office network?
    Are the pc's under your control managed by Active Directory (are they members of your organisation's AD Domain?
    Does your office network use a network firewall or proxy, and the pc's inside gain access to the internet by "traversing" this proxy?
    Is the website you mention, "inside" your organisation's network, or, "outside" your organisation's network?
    If outside, how do your organisation's pc's currently become configured for internet access?
    Do they have configurations applied to the pc's, such as proxy settings? If so, does this use Proxy Auto Configuration (PAC) or INS, such as wpad.dat or proxy.pac?
    Note that if you adjust site-to-zone settings, and/or settings for a particular zone, other websites which are categorised into that zone will also attract the adjusted settings, so you need to ensure that any changes you make, are suitable for those other
    websites too.
    Is the website address part of your organisation's domain name, or a domain name that you already have particular settings for?
    Is the website/address and the content upon it controlled by your organisation?
    For compatibility view, depending upon the IE browser version, there are different methods available, you may not need to adjust the browser settings if the webpages are suitably constructed:
    Does the website specify <!DOCTYPE  ?
    Does the website supply X-UA-Compatible metatag?
    You can deliver most settings for IE in a few different ways:
    - AD GPO (you can use Group Policy Admin Templates, or, Group Policy Preferences)
    - IEAK (you can deploy a settings package with or without deploying a version of the browser)
    - registry settings (which you can deploy using scripts or batch files)
    - get the user to manually apply the settings via the user interface
    Note that some settings may need to be applied per-user (HKCU) and some settings are per-machine (HKLM).
    If you have a multi-user or hotdesk scenario (where more than a single user, uses the same machine), this might require you to re-apply the settings for each and every user.
    E.g.:
    Your organisation is wanting to use a hosted web application, accessed from inside your organisation, but it is hosted outside your ogranisation.
    The address is http://contoso.websales.hosterxyz.com
    You examine your existing pc configurations and determine that the IE Trusted Sites zone is not currently in use by any standard configurations.
    The hosted web application requires IE Protected Mode to be disabled (because of some special functions/features).
    You examine the default settings of the IE Trusted Sites zone, and observe that the Trusted Sites zone already has Protected Mode disabled.
    You decide to categorise the website "http://contoso.websales.hosterxyz.com" as a Trusted Site.
    On a test pc, you manually add the website "http://contoso.websales.hosterxyz.com" to Trusted Sites, and test the web application is operating correctly.
    You then create an AD GPO, which adds this website address into the Trusted Sites zone, and link/apply/deploy this GPO within your AD.
    Your organisations computers automatically read, process and apply this GPO, and all computers are now configured for this website as a Trusted Site.
    Note that if you use the "classic" GPO methods (Admin Templates), users can no longer manually adjust websites in or out of the Trusted Sites zone, because when "classic" GPO is deployed, it removes the ability for users to adjust these
    settings manually.
    This may be suitable for your organisation, or, unsuitable - it depends upon the degree of "freedom" you wish/need to allow.
    Alternately, you could use IEAK or GP Preferences, to deploy the Trusted Sites settings - these two methods allow the end-user to manually adjust if they choose. This means the end-user can remove the settings you deployed.
    Again, this may (or not) suit your scenario.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Batch file to execute java code

    Hi,
    I need to write a batch file to execute a sequence of java applications.
    The problem i face is in addition to the usual libraries I am also using certain jar files i downloaded like the mail interface etc.
    When i just compile a java code using a simple batch file giving the path of the compiler and the java code, it fails citing not knowing the location if the packages.
    could anyone please let me know what i need to do. Is there like a skeleton that i might find somewhere for this operation

    dexterity wrote:
    Hi,
    I need to write a batch file to execute a sequence of java applications.
    The problem i face is in addition to the usual libraries I am also using certain jar files i downloaded like the mail interface etc.
    When i just compile a java code using a simple batch file giving the path of the compiler and the java code, it fails citing not knowing the location if the packages.
    could anyone please let me know what i need to do. Is there like a skeleton that i might find somewhere for this operationSet the classpath correctly at runtime.
    Why do you need the location of your compiler? Are you compiling or running? If you are compiling go look at Ant.

  • Batch File to look at specific location in txt files

    Is there a way to have at batch file look at a specific line and location from a text file and pull it for use in the batch file?  For example, line 1 of sample.txt position ~15,8.
    I'm currently using the Find command(FIND /C "" *.TXT) but would like to be more specific in search.

    From a command line prompt, type 'help set' and look at environment variable expansion. Read the part that says "May also specify substrings for an expansion." It shows an example that uses ~10,5 to start at offset 10 and get the next 5 characters. Of course,
    this means that you will need to you will need to loop through each line. Use the FOR command; type 'help for' and start reading from "Some examples might help." It shows how you can parse a text file:
    FOR /F %%i IN (myfile.txt) do @echo %%i
    In a batch file, use two percent signs. At the command line, use one percent sign. 
    After the 'do' in the FOR command, you can use a CALL :Someprocedurename %%i, which would pass the line from the file into a sub and you can use the SET command to parse it.
    The Help mentions Command Extensions. At command prompt, type 'help setlocal' and read about ENABLEEXTENSIONS. At the bottom of the Help, they give you an example of how to add this to a batch file. You will need this to use the SET command to parse lines
    from the file.
    If you want to save the output, use the redirects, > or >> (create output file or append to output, respectively). Use the same for HELP output: help for > for-help.txt. In your line parser, you would do something more like this:
    [code]
    :ParseLine
    @echo %1 >> outputfile.txt
    exit /b
    GoTo :Eof
    [end code]
    To exit a sub, use either exit /b or goto :eof. Exit will allow you to return a value or error code. Goto :eof simply goes to end of file and returns control to the caller (in our case the FOR command). Of course, you can type 'help exit' to learn more.
    Outside of a subroutine, exit will end the batch file script and return to command prompt. This can be useful when you call this batch file from another script, but if you are starting it from Windows you may want to keep the command prompt open to show user
    the results or simply tell them to look at the output file.
    You can find good samples on Rob Van Der Woude's website.
    http://www.robvanderwoude.com/batchstart.php
    A major geek...

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • To catch exception from a batch file

    Hi,
    I am running a batch file using java,the batch file is used for running SQL Loader.It is working OK,but I am unable to catch any exception or sucess message.Can anyone help?
    regards,
    Anshuman

    Have your Java main() catch Throwable and then use System.exit(an errror code); inside the catch. Your batch file can then examine the process return code.

  • Diference between a batch file and jnlp file

    Dear all,
    I have a question that might sound simple, but excuse me, coz I am new to jnlp.
    I run my appliction using a simple batch file:
    set JAVA_HOME=C:\j2sdk1.4.2_05
    @set RUN=%JAVA_HOME%\bin\java.exe -Xms32m -Xmx128m -classpath .;myapp.jar pack.app.Main -connection jdbc:oracle:thin:@10.0.0.1:1521:ABC -webroot http://10.0.0.2:8080/test
    %RUN%
    The jnlp file I use to start the same application is:
    <jnlp codebase="http://10.0.0.2:8080/test/app">
    <information>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="myapp.jar"/>
    </resources>
    <application-desc main-class="pack.app.Main ">
    <argument>-codebase</argument>
    <argument>http://10.0.0.2:8080/test/app</argument>
    <argument>-webroot</argument>
    <argument>http://10.0.0.2:8080/test</argument>
    <argument>-dbrpc</argument>
    </application-desc>
    </jnlp>
    I encountered two problems:
    1. The aplication hangs when I click certain buttons, which is not the case when I run it normally from the batch file.
    2. Some buttons do not even appear, where they appear normally using the batch file.
    I would appreciate any hints that could help.
    Samar

    You could make a self extracting EXE with WinZip, and then do something like..  (You would create an application with source files to do this, with the below code being your 'install.bat')
    @echo off
    xcopy "AppFiles.exe" %WINDIR%\Temp
    %WINDIR%\Temp\AppFiles.exe
    %WINDIR%\Temp\AppFiles\Install.exe
    RMDIR /S /Q %WINDIR%\Temp\AppFiles
    If you monitor the install and your satisfied its working correctly, you can modify the success return codes under the 'Option' tab, or just check the box 'Continue on Error' to keep the build rolling after this install is complete.  Additionally, you
    may find this works better as VBS script.

  • Compilation using package

    I have a problem using package :
    I have files in a directory called 'utils' which contains java files with the 'header' 'package utils;'
    In that directory the 2 files I have problem with are ClassMaker.java and Traduction.java
    ClassMaker use Traduction but when I compile it I get the following error :
    ClassMaker.java:85: Class utils.Traduction not found.
    Traduction tr = null;
    ^
    ClassMaker.java:87: Class utils.Traduction not found.
    tr = new Traduction(createURL(base+"dico.txt"));
    ^
    2 errors
    it's looking for a 'subpackage' (when I create a subdir called 'utils' and put Traduction.class in that dir there's no problem), but why??????
    thanks

    Your classpath must point (probably among others) to the root directory of your packages. Supose your utils directory is C:\MyJavaFiles\Utils, then you should:
    SET CLASSPATH=C:\MyJavaFiles;%CLASSPATH%

  • How do I make a batch file if the .class file uses a foreign package?

    I am trying to make an MS-DOS batch file using the bytecode file from the Java source file, called AddFields.java. This program uses the package BreezySwing; which is not standard with the JDK. I had to download it seperately. I will come back to this batch file later.
    But first, in order to prove the concept, I created a Java file called Soap.java in JCreator. It is a very simple GUI program that uses the javax.swing package; which does come with the JDK. The JDK is currently stored in the following directory: C:\Program Files\Java\jdk1.6.0_07. I have the PATH environment variable set to the 'bin' folder of the JDK. I believe that it is important that this variable stay this way because C:\Program Files\Java\jdk1.6.0_07\bin is where the file 'java.exe' and 'javac.exe' are stored. Here is my batch file so far for Soap:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java Soap
    pause
    Before I ran this file, I compiled Soap.java in my IDE and then ran it successfully. Then I moved the .class file to the directory C:\acorn. I put NOTHING ELSE in this folder. then I told the computer where to find the file 'java.exe' which I know is needed for execution of the .class file. I put the above text in Notepad and then saved it as Soap.bat onto my desktop. When I double click on it, the command prompt comes up in a little green box for a few seconds, and then the GUI opens and says "It Works!". Now that I know the concept of batch files, I tried creating another one that used the BreezySwing package.
    After I installed my JDK, I installed BreezySwing and TerminalIO which are two foreign packages that make building code much easier. I downloaded the .zip file from Lambert and Osborne called BreezySwingAndTerminalIO.zip. I extracted the files to the 'bin' folder of my JDK. Once I did this, and set the PATH environment variable to the 'bin' folder of my JDK, all BreezySwing and TerminalIO programs that I made worked. Now I wanted to make a batch file from the program AddFields.java. It is a GUI program that imports two packages, the traditional GUI javax.swing package and the foreign package BreezySwing. The user enters two numbers in two DoubleField objects and then selects one of four buttons; one for each arithmetic operation (add, subtract, multiply, or divide). Then the program displays the solution in a third DoubleField object. This program both compiles and runs successfully in JCreator. So, next I moved the .class file from the MyProjects folder that JCreator uses to C:\acorn. I put nothing else in this folder. The file Soap.class was still in there, but I did not think it would matter. Then I created the batch file:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java AddFields
    pause
    As you can see, it is exactly the same as the one for Soap. I made this file in Notepad and called it AddFields.bat. Upon double clicking on the file, I got this error message from command prompt:
    Exception in thread "main" java.lang.NoClassDefFoundError: BreezySwing/GBFrame
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    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:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Caused by: java.lang.ClassNotFoundException: BreezySwing.GBFrame
    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:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ... 12 more
    Press any key to continue . . .
    I know that most of this makes no sense; but that it only means that it cannot find the class BreezySwing or GBFrame (which AddFields extends). Notice, however that it does not give an error for javax.swing. If I change the "set path..." command to anything other than the 'bin' folder of my JDK, I get this error:
    'java' is not recognized as an internal or external command,
    operable program or batch file.
    Press any key to continue . . .
    I know this means that the computer cannot find the file 'java.exe' which I believe holds all of the java.x.y.z style packages (native packages); but not BreezySwing or any other foreign packages. Remember, I do not get this error for any of the native Java packages. I decided to compare the java.x.y.z packages with BreezySwing:
    I see that all of the native packages are not actually visible in the JDK's bin folder. I think that they are all stored in one of the .exe files in there because there are no .class files in the JDK's bin folder.
    However, BreezySwing is different, there is no such file called "BreezySwing.exe"; there are just about 20 .class files all with names like "GBFrame.class", and "GBActionListener.class". As a last effort, I moved all of these .class files directly into the bin folder (they were originally in a seperate folder called BreezySwingAndTerminalIO). This did nothing; even with all of the files in the same folder as java.exe.
    So my question is: What do I need to do to get the BreezySwing package recognized on my computer? Is there possibly a download for a file called "BreezySwing.exe" somewhere that would be similar to "java.exe" and contain all of the BreezySwing packages?

    There is a lot of detail in your posts. I won't properly quote everything you put (too laborious). Instead I'll just put your words inside quotes (").
    "..there are some things about the interface that I do not like."
    Like +what?+ This is not a help desk, and I would appreciate you participating in this discussion by providing details of what it is about the 'interface' of webstart that you 'do not like'. They are probably misunderstandings on your part.
    "Some of the .jar files I made were so dangerously corrupt, that I had to restart my computer before I could delete them."
    Corrupt?! I have never once had the Java tools produce a corrupt Jar. OTOH, the 'cannot delete' problem might relate to the JRE gaining a file lock on the archive at run-time. If the file lock persisted after ending the app., it suggests that the JRE was not properly shut down. This is a bug in the code and should be fixed. Deploying as .class files will only 'hide' the problem (from casual inspection - though the Task Manager should show the orphaned 'java' process).
    "I then turned to batch files for their simple structure and portability (I managed to successfully transport a java.util containing batch file from my computer to another). This was what I did:
    - I created a folder called Task
    - Then I copied three things into this folder: 1. The file "java.exe" from my JDK. 2. The program's .class file (Count.class). and 3. The original batch file.
    - Then I moved the folder from a removable disk to the second computer's C drive (C:\Task).
    - Last, I changed the code in the batch file...:"
    That is the +funniest+ thing I've heard on the forums in the last 72 hours. You say that is easy?! Some points.
    - editing batch files is not scalable to 100+ machines, let alone 10000+.
    - The fact that Java worked on the target machine was because it was +already installed.+ Dragging the 'java.exe' onto a Windows PC which has no Java will not magically make it 'Java enabled'.
    And speaking of Java on the client machine. Webstart has in-built mechanisms to ensure that the end user has the minimum required Java version to run the app. - we can also use the [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit] on the original web page, to check for minimum Java before it puts the link to download/install the app. - if the user does not have the required Java, the script should guide them through installing it.
    Those nice features in deployJava.js are available to applets and apps. launched using webstart, but they are not available for (plain) Jar's or loose class files. So if 'ensuring the user has Java' is one of the requirements for your launch, you are barking up the wrong tree by deploying loose class files.
    Note also that if you abandon webstart, but have your app. set up to work from a Jar, the installation process would be similar to above (though it would not need a .bat file, or editing it). This basic strategy is one way that I provide [Appleteer (as a downloadable ZIP archive)|http://pscode.org/appleteer/#download]. Though I side-step your part 1 by putting the stuff into a Jar with the path Appleteer/ - when the user expands the ZIP, the parts of the app. are already in the Appleteer directory.
    Appleteer is also provided as a webstart launched application (and as an applet). Either of those are 'easier' to use than the downloadable ZIP, but I thought I would provide it in case the end user wants to save it to disk and transport the app. to a machine with no internet connection, but with Java (why they would be testing applets on a PC with no internet connection, I am not sure - but the option is there).
    "I know that .jar and .exe files are out because I always get errors and I do not like their interfaces. "
    What on earth are you talking about? Once the app. is on-screen, the end user would not be able to distinguish between
    1) A Jar launched using a manifest.
    2) A Jar launched using webstart.
    3) Loose class files.
    Your fixation on .bat files sounds much like the adage that 'If the only tool you have is a hammer, every job starts to look like a nail'.
    Get over them, will you? +Using .bat files is not a practical way to provide a Java app. to the end user+ (and launching an app. from a .bat looks quite crappy and 'second hand' to +this+ user).
    Edit 1:
    The instructions for running Appleteer as a Jar are further up the page, in the [Running Appleteer: Application|http://pscode.org/appleteer/#application] section.
    Edited by: AndrewThompson64 on May 19, 2009 12:06 PM

Maybe you are looking for

  • Satellite U400-22n and Win7 - screen hangs after 5 min

    Hi, This is my first post Ive purchased a new U400 with Vista preinstalled, last week ; 2 days ago Ive upgraded to windows 7 32bit professional when I stared Installing it windows prompted me that it requires a full installation , so I done a normal

  • Variable from one class to another in a game

    I am making a game in which a user can enter the speed of the initial velocity of a ball. My problem is that when i run the program and enter the speed of the ball in the JTextField, it doesn't actually change the speed of the ball. The ball just use

  • Sub-contracting error?

    hi Gurus Can anybocy give some input for my problm. While creating Sub-contract PO, i m getting error "Combination item category L/account assignment category K not defined" Pls send me some solution Thanks By sap-mm

  • Opening Safari causes Mac Mini to Crash & Restart

    Every time I attempt to open Safari the dock icon bounces a couple of times, the computer then freezes and restarts. On restart it shows a grey screen that says "Your computer restarted because of a problem" or something like that. Can somebody let m

  • NWDS - Build EJB Archive not possible

    Hi there! Recently I updated my NWDS from version 2.0.15 to version 2.0.16. My workspace mainly consists of 2 EJB Module projects, 1 Web Module Project and 1 Enterprise Application project. The EAR project bundles the modules to an enterprise applica