My JFrame app will refuse to work I dont know why some PLEASE help
(BY LOOKING AT THE FOLLOWING YOU NEED TO PROMISE YOU WONT TAKE AND USE THIS CODE.
THIS IS FOR SOFTWARE SO I WILL NOT ACCEPT THIS STOLEN AND REMADE)
Ok so I compiled the following with (javac) and made it into a .jar file
but the application won’t work, heres the code and the manifest
MANIFEST (manifest.txt)
[code]
Main-Class: MEM
CLASSES (FROM:”FLIP.java”,FILES:”MEM.class, Window.class, MnMthd.class”)
[code]
//stage: INDEV
import javax.swing.JFrame;
import java.util.*;
class MEM {
static String Path;
static boolean thistrue = false;
public static void Mbank() {
String Files;
String Directory;
Files = “”;
Scanner dir = new Scanner(System.in);
Directory = dir.nextLine();
Path += Directory;
try{
if(thistrue == false){
if(Directory != Files) {
Files = Directory;
thistrue = true;
}
}
}
catch(Exception e){
System.out.println(“the main path is:”+Path);
System.out.println(“opening”);
}
}
}
class Window extends JFrame {
public static void win() {
JFrame win = new JFrame(“TEST PRODUCT”);
win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
win.setVisible(true);
win.setSize(500,500);
}
}
class MnMthd {
public static void main(String[] args) {
MEM Exc = new MEM();
Exc.Mbank();
Window w = new Window();
w.win();
}
}
/*
credits:
Piko (OWNER/MAIN DEVELOPER)
NogDog
root
stack overflow (Website)
*/
but the JFrame Will not open, why?
also email me at