Search:

Type: Posts; User: hafunui

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    3,626

    Re: Opening a file with a java program

    Ok, I was looking into batch scripts and I found out I can do this:


    "C:\Program Files\Java\jre6\bin\javaw.exe" -Xms64M -Xmx4G -jar "C:\path\to\myApp.jar" %*

    I just open my file with the .bat...
  2. Replies
    4
    Views
    3,626

    Re: Opening a file with a java program

    Sorry to bump, but I still haven't figured this out yet.

    To reiterate, what I'm trying to do is to open a file by dragging it over MyJavaApp.jar, or in windows (MyFile > open with >...
  3. Replies
    4
    Views
    3,626

    Re: Opening a file with a java program

    I've managed to associate the .jar with a file, but the program does not launch. Here's some code.


    package simpleImageViewer;

    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import...
  4. Replies
    4
    Views
    3,626

    [SOLVED] Opening a file with a java program

    Hi, beginner java programmer here :)

    How do I open a file with a java program? Search results return people trying to open a file with streams, or native applications and command lines and such;...
Results 1 to 4 of 4