Could not find or load main class client.Jframe
As you can see, it is in the right packaging
[Only registered and activated users can see links. Click Here To Register...]
Here is the line in my .bat
Code:
java -Xmx300m client.Jframe 10 0 highmem members 32
I'm probably missing something pretty obvious to some, idk :\
Repz+3 ofc, tyz :)
yuhp yuhp, and if anyone needs the class
[SPOIL]
Code:
package client;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import javax.swing.*;
public class Jframe extends Client implements ActionListener {
private static JMenuItem menuItem;
private JFrame frame;
public Jframe(String args[]) {
super();
try {
sign.signlink.startpriv(InetAddress.getByName(server));
initUI();
} catch (Exception ex) {
ex.printStackTrace();
}
}
public void initUI() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
frame = new JFrame("Legendary Realms | Official Client - v.##");
frame.setLayout(new BorderLayout());
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel gamePanel = new JPanel();
gamePanel.setLayout(new BorderLayout());
gamePanel.add(this);
gamePanel.setPreferredSize(new Dimension(765, 503));
JMenu fileMenu = new JMenu("File");
String[] mainButtons = new String[] {
"Home", "-", "Exit"
};
for (String name : mainButtons) {
JMenuItem menuItem = new JMenuItem(name);
if (name.equalsIgnoreCase("-")) {
fileMenu.addSeparator();
} else {
menuItem.addActionListener(this);
fileMenu.add(menuItem);
}
}
JMenuBar menuBar = new JMenuBar();
JMenuBar jmenubar = new JMenuBar();
frame.add(jmenubar);
menuBar.add(fileMenu);
frame.getContentPane().add(menuBar, BorderLayout.NORTH);
frame.getContentPane().add(gamePanel, BorderLayout.CENTER);
frame.pack();
frame.setVisible(true); // can see the client
frame.setResizable(false); // resizeable frame
init();
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public URL getCodeBase() {
try {
return new URL("http://" + server + "/cache");
} catch (Exception e) {
return super.getCodeBase();
}
}
public URL getDocumentBase() {
return getCodeBase();
}
public void loadError(String s) {
System.out.println("loadError: " + s);
}
@Override
public String getParameter(String key) {
return "";
}
private static void openUpWebSite(String url) {
Desktop d = Desktop.getDesktop();
try {
d.browse(new URI(url));
} catch (Exception e) {
//
}
}
@Override
public void actionPerformed(ActionEvent evt) {
String cmd = evt.getActionCommand();
try {
if (cmd != null) {
if (cmd.equalsIgnoreCase("exit")) {
System.exit(0);
}
if (cmd.equalsIgnoreCase("Home")) {
openUpWebSite("http://www.google.org/");
}
}
} catch (Exception e) {
//
}
}
}
[/SPOIL]