Can you execute a class file without invoking the command line java command

I am running java on a Windows XP equipped machine, and I am wondering if it is possible to execute a class file by double clicking the file icon, or can it only be done via command line. So far I have been unsuccessful in my attempts - I tried associating the class file with the java executable in my JRE directory, but that didn't work.
Many thanks,
-Stile

nope, can't be done, by design... microsoft recognised java as threat to the empire very early on in the peace.... but you can write a batch file to execute myprogram.class called myprogram.bat and stick it in your PATH.
keith.

Similar Messages

  • In Snow Leopard, there was a quick look feature that allowed you to look at files without opening the program.  It doesn't show up in Lion on my iMac.  Any ideas?  Thanks

    In Snow Leopard, there was a quick look feature that allowed you to look at files without opening the program.  It doesn't show up in Lion on my iMac.  Any ideas?  Thanks

    While in Finder, select the file (click on its icon once) then press the Spacebar.

  • Can you move between text boxes without using the mouse?

    Can you move between text boxes without using the mouse?  When I have mutliple text boxes as a template, and then need to move from one to the next can I do it without having to use the mouse to click the next box??

    Jon,
    Option-Tab will sequence through the tables.
    Jerry

  • Can you write an avi file without using imaq

    Just curious if anybody has tried to write an avi file without using imaq vi's? So far I have only found sketchy info on the file format and am looking for some help on the file structure etc. Any references or example avi files with explanations of format would be most helpfull. Thanks in advance -

    Absolutely.......
    An AVI video file is actually structured in the same way as most Windows media files or RIFF files as they are generically known, thus the description below is applicable to for example WAV files etc.
    Thus the file always begins with the four byte code RIFF and continues to use this generic four byte coding known as FOURCC, four-character code or FCC throughout.
    There are then specific requirements for each different media content and the sections that must be included to define a valid file structure of the desired meadia type.
    Each section or 'CHUNK' is defined by an FCC (RIFF being the first) with facility to include additional FCC's as required. The FCC is followed by a length descriptor and then the data (just for fun the odd CHUNK does not quite fit this very general overview). These chunks then align to even word boundries so padding zeros are often inserted at the end of a CHUNK to make it all nice and neat.
    It is a requirement that software that does not recognise an additional custom CHUNK should ignore it, this is very easy as all you have to do is use the length descriptor to 'jump' over the CHUNK concerned.
    The following is an example from the 'CLOCK.AVI' found on windows computers for a number of years...
    RIFFjB AVI LISTΠhdrlavih8
    Here you can see the RIFF followed by a four byte length descriptor (4 Gigabytes), followed by various sub CHUNKS in this example the sub CHUNK is an AVI (note that it is actually 'AVI ' to conform to the FCC).
    So the CHUNK structure looks a bit like this:-
    RIFF ('AVI '
    LIST ('hdrl'
    'avih'()
    LIST ('strl'
    'strh'()
    'strf'()
    'strd'()
    'strn'()
    LIST ('movi'
    {SubChunk | LIST ('rec '
    SubChunk1
    SubChunk2
    ['idx1']
    For more information on all this you need to read the RIFF specification documentation on the MSDN website or on the MSDN Technet materials. Most of the stuff you will immediately locate will refer to the AVI file format as that is where most of the recent effort has been focused.

  • Can you delete iMovie video files without affecting a project?

    I downloaded files from my recorder and created an iMovie. I didn't use every recorded file.
    Now that I've created a project can the orginal files be deleted to save space?

    If you never ever want to edit that project again, and if the raw footage contains images that are not important to you, and you never want to use those clips in a future project you can delete them.
    The important thing to remember is that your video clips are stored in Events. The Project only contains a text file that has the paths to the event clips and instructions for how to put your video together.
    When you finish a project and SHARE it using the Share menu, you are creating a finished version of the project. So if that is all you will ever need, you can delete your events and even your project.
    What a lot of people do is to have a large external drive to store old events on. See instructions here.
    https://discussions.apple.com/docs/DOC-4141
    Also, if you create a camera archive (for AVCHD camcorders) of your raw clips, you can re-import your event clips later.

  • How can you open a project file backup if the main project won't load?

    This has only started happening in the last couple of weeks. I'm on Logic 10.0.7, OSX 10.8.5. On one particular project, it will be loading seemingly normally, then it just disappears with no crash log, nothing.
    Presumably there is some sort of corruption in the project file.
    In the old pre package days, you would just go to the project file backups folder and pick a previous one. Bingo, you have only lost a little bit of work.
    Now when I show package contents, the project file backups folder has project data files that won't open logic, and are invisible until you have logic open. Which I can't do.
    Rue the day I selected the package option rather than folder.
    Any suggestions?
    Or to put the question another way, how can I convert the project data in the project file backups folder to a file that Logic can recognise and open?

    Having his install the trial is the way to go. Working between AI versions is a pain and as you are finding out almost impossible with 5 versions between the collaborators.

  • Can you replace a retina screen without replacing the entire computer?

    Hello,
    I have the standard issue with a horrible LG screen causing image retention. I've had it for almost a year now and it hasn't bothered me too much but I have Apple Care and am within my rights to return it for a Samsung one.
    I have a lot of things setup on my computer (it is for work) so it would be a big problem to have to replace the entire thing. Can you just replace the monitor whilst leaving the hard drive and everything else in tact?
    Thank you kindly in advance for your responses
    David

    DavidMartin27 wrote:
     ...I have a lot of things setup on my computer (it is for work) so it would be a big problem to have to replace the entire thing. Can you just replace the monitor whilst leaving the hard drive and everything else in tact?...
    Judging from other responses, it appears Apple would be willing to just replace the screen. But except for your original choice of drive size, CPU speed and RAM, everything set up on your computer is what's on your HD (actually SSD). You've already been advised to make a backup, but if the backup you make is a clone and bootable, it can be written back to the internal drive and you'd be back in operation in a short time.
    That would be just as true if you swapped if tor the 2013 rMBP, assuming that was offered with the screen you want instead.

  • Can you change where a clip connects to the story line?

    Anyone?

    The question's kind of vague. A clip gets connected to  the primary storyline based on where the skimmer or playhead is. If you want them connected at a different place move the skimmer before you make the edit.
    If you mean can you change the connection point of a connected clip without changing its position, yes, you can. You option-command click on the lower edge of the connected clip at the point at which you want it attached to the primary storyline.

  • I can't open some photoshop files it says "The command "Set" is not currently available."

    What does this mean and how can I fix it? A corworker will make a photoshop file (Poster for example) and when i try to open it on my computer it wont open and says "The command “Set” is not currently available." What does this mean and how can I fix it? Thanks!

    You are running some sort of automation when you open files - because that error message comes from automation (actions, scripts or plugins) that are trying to target something that isn't there.
    Event Scripts was the obvious choice.
    Automation plugins, or Flash Panels are the next most obvious -- try disabling all third party plugins and Flash Panels.
    The error might come from Generator, if you have the latest Photoshop CC.

  • Can you insert into a table without having the table structure in place

    I have tried to use the import wizard insert data in a CSV file into a table;
    I have 7 column headers, however, where there are extra commas in a field the wizard just combines the 2 fields so that i get a total of 7 columns even though there should be more.
    any ideas how i can round this problem?
    should i use bulk copy?
    sukai

    Are you using correct text qualifiers in the CSV?
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • How can I package my InDesign file without converting the images to CMYK?

    I had previously thought I have to convert each link individually, but I have received packaged files that include both RGB and CMYK images, but when I try to package my document, it is saying that I have errors on all the RGB images. Are there settings that allow me to package the links without conversion? I know how to export it with a one-time conversion, but I cannot find the answer to this question anywhere.

    Thank you for helping! I must be doing something else wrong then because it will stop packaging as soon as it tries to get the links... and will gather a few and then stop. The warning message is "could not copy linked files" but I don't have any warning signs on any of my links in the links panel...

  • Can you buy a 3G service without a 3G iPad

    Can you buy a 3G service without having the 3G ipad2

    Most carriers have plans in which you purchase a 3G or 4G modem that lets any WiFi device connect, much like a wirless router at home. The data plans are more expensive but you can connect any Wifi enabled device to the 3G or 4G network through the portable modem.

  • Getting Package Name From Class File Without Parsing File

    I am writing an application where I need to get the package name from a class file without parsing the class file itself.
    Basically, what happens is the user chooses a class file from anywhere in the file system. I then want to use reflection to get information about that class. To do that I need the fully qualified class name. I know that the package name is part or all of the path name but I don't know for sure which part it is. I don't want to parse the class file directly for the package name in case the class file spec is changed (that way I won't have to rewrite any code).
    Does Java have any way of getting this information without doing something stupid like gradually stripping off part of the pathname and trying it?

    The ClassLoader way seems to work fine, copy a class file to "A.class" and run this:import java.io.*;
    class ClassLoaderExample {
        public static void main(String[] args) throws Exception {
            class MyClassLoader extends ClassLoader {
                public Class load() throws IOException {
                    File f = new File("A.class");
                    byte[] classData = new byte[(int) f.length()];
                    new RandomAccessFile(f, "r").readFully(classData);
                    Class loaded = defineClass(null, classData, 0, classData.length);
                    resolveClass(loaded);
                    return loaded;
            Class c = new MyClassLoader().load();
            System.out.println(c);
            System.out.println(c.newInstance());
    }

  • Can you code 2 classes into one source file?

    Can you have 2 classes coded in one source file? If so, do you end up with 2 .class files after the compile?

    yes you can code 2 classes in one source file. I
    believe that you have to reference one class is an
    "object" class of the class under which you save the
    file as.
    Example:
    File name is A.java
    class A{
    class B{
    When you want to refer to class B, you have to say
    A.B ( eg: A.B ab = new A.B() ). The class file(s)
    will be A.class and A$B.class.
    This is what I recall at best at the time. good luckI presume you mean when one is an inner class? Otherwise:
    public class one {
      one() { System.out.println("one");
      public static void main( String[] argv ) {
        new one();
        new two();
    class two {
      two() { System.out.println("two");
    }Will work fine, and will create one.class and two.class. But that does not mean it is a good idea to do it ;o)

  • Can you have a DIAdem file embedded in a web app and then when you click the link to the DIAdem file it invokes DIAdem?

    Can you have a DIAdem file embedded in a web app and then when you click the link to the DIAdem file it invokes DIAdem?

    Hello JCN,
    I will keep in touch with the current Applications Engineer who will be assisting you with this issue and update the forum with the status of the problem. I personally think that your best option would be to create a link that opens DIAdem and then runs a script to load the data from a predetermined file (Rather than a link to the file itself).
    Ian M.
    National Instruments

Maybe you are looking for

  • Safari quits unexpectedly whenever I try to open it

    For a while now, whenever I try to open Safari, it crashes, or "quits unexpectedly". As soon as I click the Safari button on my dock, the icon jumps up and down a couple of times, but then suddenly, the page pops up with "Safari quit unexpectedly". I

  • How to generate two different analog signal in two different VIs

    I'm using a PCIe-6321 board and a SCB-68 connector block. As it has two analog output I would like to use one of these output in one Vi to generate a square waveform and the other output in another VI to generate a sine waveform. Each VI work perfect

  • Brand new Ipod touch useless within 10 minutes of opening it.

    So I have a brand new Ipod touch that I bought today and took home. I opened it connected it to itunes and everything was fine so I pressed the update button and something happened. I don't know what happened and itunes didn't recognise the touch any

  • No workflow started

    Hi All I have searched the forum first but no luck with a answer with similar question from another person previously We are on SRM5.0 EC Need your help here User has created a shopping cart and tried to order it but gets msg No workflow started. App

  • Picture variable to image (IMAQ)

    I am trying to convert a "picture" type to "image type" . The "picture" type is from Graphics & Sound toolbox and image type comes from Vision and Motion toolbox. Writing to a file like jpg and rereading it as an image is not an option. The picuture