Execute jar file: "could not find the main class" program will terminate
Hey,
I am new to Java. I have started to make a small java program which supposed to help me at my studies to lean the Dominic Memory System. I have used the latest version of Netbeans 5.5.1 to build my program in. I have two problems which I cannot figure out how to solve, please help me.
The first problem is that the java script I have made works when I compile it in Netbeans, but when I create a Jar file it does not work. I receive a pop up message in windows ?could not find the main class program will terminate? when I execute the jar file.
The second problem I have is that I need to compare the strings generated by the "numbers" and "TIP" and if the numbers is not identical the numbers in the ?Center? JPanel should be highlighted as red.
If anyone would like to clean up the code I would be pleased. I have copied quite a lot from anyone because of my one lack of knowledge.
* GoListener.java
* Created on 12. september 2007, 21:48
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package grandmaster;
import java.awt.event.*;
import javax.swing.*;
import java.util.Vector;
import java.util.StringTokenizer;
import java.awt.Color;
* @author Computer
public class GoListener implements ActionListener {
private JTextField viewer;
private JTextField TIP;
private JTextField freq;
private JTextField max_num;
private Vector numbers;
public GoListener(JTextField j,JTextField k, JTextField m, JTextField f, Vector n) {
freq = f;
max_num = m;
viewer = j;
numbers = n;
TIP = k;
public void actionPerformed(ActionEvent e){
int time = Integer.valueOf(max_num.getText());
int f = Integer.valueOf(freq.getText());
if (e.getActionCommand() == "GO") {
for (int i = 0; i< time;++i) {
int number=0;
number = (int)Math.floor(100*Math.random());
while(number>51){
number = (int)Math.floor(100*Math.random());
if(number<=9){
viewer.setText(" "+"0" + String.valueOf(number) + " ");
} else{
viewer.setText(" " + String.valueOf(number) + " ");
viewer.paintImmediately(viewer.getBounds());
numbers.add(number);
try {
Thread.sleep(f*1000);
} catch (Exception exp) {
viewer.setText(" XX ");
viewer.paintImmediately(viewer.getBounds());
if (e.getActionCommand() == "VIEW") {
try {
//int numb = Integer.valueOf( TIP.getText() ).intValue();
StringTokenizer tokenizer = new StringTokenizer(TIP.getText(), " ");
String[] split = null;
int tokenCount = tokenizer.countTokens();
if (tokenCount > 0) {
split = new String[tokenCount];
for (int current = 0; current < tokenCount; current++) {
split[current] = tokenizer.nextToken();
viewer.setText(" " + String.valueOf(numbers) + " ");
// k=numbers(1);
/*while(c<i){
String.valueOf(k).equals(split[1]);
c++;
TIP.setText(" " + split[2] + " ");
} catch (Exception exp) {
try {
//string testit = numb.toString();
//String str = "" + numb;
//viewer.setText(str);
//viewer.setText(numbers.toString());
numbers.clear();
} catch (Exception exp) {
* Main.java
* Created on 12. september 2007, 21:07
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package grandmaster;
import java.util.Vector;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.JButton;
import java.awt.*;
import grandmaster.GoListener;
* @author Computer
public class Main extends JFrame {
private JTextField viewer;
public JTextField TIP;
// private TextInputPanel TIP;
private Vector numbers;
/** Creates a new instance of Main */
public Main() {
numbers = new Vector();
JPanel p = new JPanel(new GridLayout(0,4));
JButton go = new JButton();
JButton view_num = new JButton();
go.setText("Go!");
go.setVisible(true);
go.setActionCommand("GO");
view_num.setText("VIEW");
view_num.setVisible(true);
view_num.setActionCommand("VIEW");
JTextField max_num = new JTextField();
max_num.setText("5");
JTextField freq = new JTextField();
freq.setText("1");
viewer = new JTextField();
viewer.setText("XX");
TIP = new JTextField("");
p.add(go);
p.add(max_num);
p.add(freq);
p.add(view_num);
getContentPane().add(p,BorderLayout.NORTH);
getContentPane().add(viewer,BorderLayout.CENTER);
getContentPane().add(TIP,BorderLayout.SOUTH);
setSize(200,200);
GoListener g = new GoListener(viewer,TIP,max_num, freq, numbers);
go.addActionListener(g);
view_num.addActionListener(g);
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
Main window = new Main();
window.setVisible(true);
}
NetBeans questions should be posted to the NB site. It has mailing lists and associated forums.
This tutorial from the NB site addresses running programs outside of NB
http://www.netbeans.org/kb/articles/javase-deploy.html
When you compare objects, use ".equals()" and reserve == for comparing values.
Similar Messages
-
Executable JAR file: Could not find the main class.
Hello,
I have a problem with making an executable JAR file.
I have written a JAVA program that consists of five different classes of which User.java is the main class and I have saved a text document with Main-Class: User and a blank line after that.
If I try:
jar cmf MainClass.txt User.jar User.class Beheerder.class Operator.class Manager.class MaakVisueelSchema.class
it makes a executable jar file which actually works! :)
But when the Operator class trys to open the MaakVisueelSchema class the screen stays blank.
I can run MaakVisueelSchema with java MaakVisueelSchema.
So I tried to make an executable JAR that consists only of MaakVisueelSchema, the same way as I did for User:
Main-Class: MaakVisueelSchema
jar cmf MainClass.txt MaakVisueelSchema.jar MaakVisueelSchema.class
Then I get the error message:
Could not find the main class. Program will exit.
from the Java Virtual Machine Launcher.
The big difference between MaakVisueelSchema and the other classes is that MaakVisueelSchema contains a PaintComponent method and an ComponentListener. Is it possible that one of those creates the error?
Can anyone help me with this problem?
Thanks in advance!
Bye!Yes,
I tried:
jar xvf MaakVisueelSchema.jar
and it returns:
META-INF/
META-INF/MANIFEST.MF
MaakVisueelSchema.classN/G. You need to manually create a manifest file in a text editor, have it point to your main class, and enter it in your jar command as an argument. -
Error msg Could not find the main class.Program will exit. in jar execution
Hello,
I have created a jar so that I can used it in the webapp.
but when I click on it it says "Could not find the main class.Program will exit."
I searched a lot in the net and found that it has to do with the manifest file.
I even updated the manifest file using the command "jar umf main.txt filefolderupload.jar" with the class name mention along with the package heirarchy.
(pakage heirarchy in /,\ and .)
I am using JDK 1.5 . and have Updated JRE 1.6.
Also tried with extending the class with JApplet, but in vain.
Kindly help me in the above mention issue.
tia,
SarwaThis post hints at a number of misunderstandings on your part, and raises a couple of important questions.
Note that this 'simple question' has a complicated answer. Given the complexity of it, it might pay to add Dukes to it, ..a lot of Dukes.
The important questions are.
1) Does this file/directory uploader need to provide the end-user with a file dialog in which they can choose a local directory to upload, or will a multi-file chooser do?
2) Does this uploader need to upload to foreign sites, or does it upload back to its own server?
Looking at this table I prepared to describe the [uploader/local file access|http://pscode.org/test/uploader/fileuploader.html] possibilities, if the answers to the questions are 'multi-file chooser will do' and 'home site only', the best option is a sandboxed app. launched using webstart (JNLP) - option 5. If either of those questions go the other way, option 6 (digitally signed with extended permissions) is needed. -
Error:-could not find the main class programe will exit(Java virtual mach)
Hi,
i changed the mainfest file for an executive jar file(judge.jar) using the command on dos :-"jar cvfm judge.jar c:\judge\MAINFEST.MF -C judge/ ." , but when i run this jar file again after making changes in mainfest file it is not working. an error encounter like "could not find the main class programe will exit how to solve"(Java virtual machine launcher).please suggest me how to solve this error.
Thanks
Ashwani GuptaHi,
mainfest file has a entry like "main -class: judge.repository.corpus"
please tell me the solution of this error i am doing internship in national university of singapore......and my project is related to data mining.I am using judge.jar when i extract this jar files i saw there was no main-class in manifest file so i change it and make it again jar file using dos command.please suggest me how i can reomove this error.
Thanks in advance.
Ashwani -
Java Virtual Machine Launcher could not find the main class - program will
I have installed J2SE and followed all the instructions but upon restarting the PC I get a dialogue box with the messege Java Virtual Machine Launcher could not find the main class - program will exit.
I have tried multiple times un-installing and re-intalling this but i still get the messege when i restart windows.
Can anyone offer any suggestions as to what i may be doing wrong.
When I do the verify installation I get the congtratulations you have the latest Java Installed.
HelpSomething is being automatically started when the pc starts. Assuming Windows, to see what it is, learn to use the msconfig program:
http://www.google.com/search?q=how+to+use+msconfig
Apparently, whatever it is, it's not correctly configured. -
Executable JAR sometimes could not find the main class.
I have a little task, that seems to be trivial- but I have no idea how to solve the current problem.
With a double click on my jar, a message comes up: JVM could not find the main class. Program will exit.
The executable JAR is an export result from eclipse, with a manifest file that contains the right entry to the main class.
But the curious thing is, that I have tested the little Swing-Application with 3 JRE versions: 1.4.2._06, 1.4.2_09 and 1.5 on Win2K and XP. Every time it works fine, but on one system it fails. (Normally it requires no external classpath settings, no path-entries to work.)
The ugly system is Win XP with JRE 1.4.2_06 installed.
Is there anybody with a good hint?
Please let me know.
ChristianeOK, I ll try to explain it in other words:
It is an executable jar file, with a manifest file that specifies the Main-Class. No other external files or jars or settings needed. Only a simple JDialog initialized from a parent JFrame.
I d like to start it with a double click from the Win-Explorer, not from command line!
As a result a dialog from "Java Virtual machine Launcher" displays
"Could not find the main class. Programm will exit."
My Problem is, I don t understand the launching process in depth. But I can reproduce the message with the following command:
wrong:
javaw -cp OrderAlertTest.jar OrderAlertParentDialog
-> Error dialog appears
correct:
javaw -cp OrderAlertTest.jar apo.order.OrderAlertParentDialog
-> OK
Any idea?
Christiane -
JAR file: could not find the main class.
I have been working with Java satisfactorily for about two years.
Installed a bigger hard disk.
Installed Windows XP.
Downloaded java.
Downloaded java jdk 1.6.0_07
Downloaded java3d 1.5.2
Downloaded Eclipse Ganymede.
A new project, a new class with an existing and working java file. It did function in eclipse.
Generated a jar file with:
Export \ JAR FILE \ select files and the destination for the Jar file .....
... next...next filled the field Main Class
This generates the jar files, which have worked before.
And now the error: could not find the main class.
Thand you for your help.Executing a jar file means it will not read from the CLASSPATH environment variable. I learnt this the hard way a few weeks ago and I had to resort to different measures to work around it.
Your problem does sound weird, but check that the last line in your manifest file is a new line. If it's not, the manifest is not read and parsed correctly.
To test, do this: remove everything from the manifest that you don't need, except the Manifest-Version and Main-Class attributes. Make sure the last line is a new line, and see if it works.
Cheers -
Problem with message: Could not find the main class Program will exit
I don't get why this isn't working. Any help is appreciated.
//Code start
public class hello{
public hello(){
public static void main( String args[] ){
System.out.println("Hello");
//Code end
I compile it as so:
javac hello.javaIt compiles fine and I now have hello.class in my current directory, but when I type the following:
java helloI get this:
Exception in thread "main" java.lang.NoClassDefFoundError: hello
Caused by: java.lang.ClassNotFoundException: hello
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: hello. Program will exit.mring001 wrote:
That worked. Thank you very much!Good. You should read [_Setting the class path_|http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html] that tells you more about what the classpath is and how to set it. -
Running JAR files (Could not find the main class error)
Hi all,
I'm having a bit of a problem with my app. I created an application with the current Netbeans edition, containing multiple .class files, and a few .jar libraries that are needed too.
Now I'm having problems with running the .jar that the Netbeans creates, so I figured I'd make a one on my own.
Okay, this is what I have going on:
C:\MyApp\ <--- root for the application
C:\MyApp\src\ <--- this is where the .class files are
C:\MyApp\lib\ <--- here are the .jar libraries which are needed
C:\MyApp\jar.exe
C:\MyApp\Manifest.txt
Now I have a couple questions.
1. Is it ok that the .class files all have a "package MyPackage; " thing in the beginning?
2. How should I proceed on making the Manifest.txt file correctly? I have tried various different outputs and read a few topics here from how it should be done, but I just can't nail it. Currently my Manifest looks like:
Main-Class: MyPackage/Myapp
Class-Path: lib/xxx.jar lib/xxx2.jar lib/xxx3.jar
Any help would be appreciated! Thanks.Oh, almost forgot:
3. The right way to create a jar? I used this:
C:\MyApp\jar cmf Manifest.txt MyJar.jar src\*.class
And system is Windows XP. -
The dreaded "could not find the Main Class, Program will exit", how?
Hello all,
I am trying to run my .jar file and I get this error message.
I want to mention I googled and searched for it, without success: There is so many different explanations!
I tried this:
Adding some lines in a manifest.fm file...
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b19 (Sun Microsystems Inc.)
X-COMMENT: Main-Class will be added automatically by build
I have Netbeans 5.5.
Also I noticed my "build.xml" file is empty" and my "manifest.fm" nearly empty. I have also added "project, main class" in the options...
Here is my "build":
{code}<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="BetaCourseworkJava3d_Final" default="default" basedir=".">
<description>Builds, tests, and runs the project BetaCourseworkJava3d_Final.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="BetaCourseworkJava3d_TestsBACKUPSUNDAY05April-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
{code}
my Manifest:
{code}Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b19 (Sun Microsystems Inc.)
X-COMMENT: Main-Class will be added automatically by build
{code}
And my whole code (although I have like 4 .JAVA files in my project):
{code}
package courseworkjava3d;
import java.awt.*;
import java.awt.event.*;
import com.sun.j3d.utils.geometry.*;
import com.sun.j3d.utils.universe.*;
import javax.swing.*;
import javax.media.j3d.*;
import javax.vecmath.*;
import javax.media.j3d.PositionPathInterpolator;
import javax.media.j3d.Alpha;
import javax.media.j3d.BoundingSphere;
import com.sun.j3d.utils.applet.MainFrame;
import java.applet.Applet;
import java.awt.event.WindowAdapter;
import javax.swing.Timer;
import com.sun.j3d.utils.image.*;
public class Simple3D extends JFrame implements ActionListener, KeyListener
private TransformGroup objTransxx;
private Button go = new Button("Press to start the Bouncing Ball. Press A and S to move the ball Left and Right once it started!");
private Transform3D transxx = new Transform3D();
private float height=0.0f;
private float sign = 1.0f; // aller vers le haut ou vers le bas
private Timer timer;
private float xloc=-2.25f;
public Simple3D()
setSize(800, 800);
GraphicsConfiguration graphicsConfig = SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas = new Canvas3D(graphicsConfig);
getContentPane().add("Center", canvas);
BasicUniverse universe = new BasicUniverse(canvas, 8.0f);
// Rotate the view platform by PI/4 radians about X in the BasicUniverse
TransformGroup viewTransform = universe.getViewPlatformTransform();
Transform3D transform = new Transform3D();
transform.rotX(-Math.PI / 4.0);
Transform3D currentTransform = new Transform3D();
viewTransform.getTransform(currentTransform);
transform.mul(currentTransform);
viewTransform.setTransform(transform);
// Add something to display
BranchGroup scene = createCubeGraph();
universe.addBranchGraph(scene);
/* //ultra important! comment theses lines otherwise it bugs!
//Merde
setLayout(new BorderLayout());
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
Canvas3D c = new Canvas3D(config); */
add("Center", canvas);
//i messed up te code, i replaced canvas c by "canvas" as i already had one!
canvas.addKeyListener(this);
timer = new Timer(75,this);
//timer.start();
Panel p =new Panel();
p.add(go);
add("North",p);
go.addActionListener(this);
go.addKeyListener(this);
// Cr�er une sc�ne simple et l�ajouetr � l�univers
//BranchGroup scene2 = createCubeGraph();
//SimpleUniverse u = new SimpleUniverse(c);
//u.getViewingPlatform().setNominalViewingTransform();
//u.addBranchGraph(scene2);
//End Merde
public BranchGroup createCubeGraph() {
BranchGroup Humanoid = new BranchGroup();
//Debut Ball REBOUND
// Create the root of the branch graph
//BranchGroup objRoot = new BranchGroup();
objTransxx = new TransformGroup();
objTransxx.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
Humanoid.addChild(objTransxx);
// Cr�er une forme simple et l�ajouter au graph de sc�ne
Sphere spherex = new Sphere(0.85f);
objTransxx = new TransformGroup();
objTransxx.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
Transform3D pos1 = new Transform3D();
pos1.setTranslation(new Vector3f(-2.0f,0.0f,-2.0f));
objTransxx.setTransform(pos1);
objTransxx.addChild(spherex);
Humanoid.addChild(objTransxx);
BoundingSphere boundsx =
new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
// I messed up the colors: I have applied 2 times some colorslights to the same BranchGroup
Color3f light1Colorx = new Color3f(1.0f, 1.0f, 1.0f);
Vector3f light1Directionx = new Vector3f(4.0f, -7.0f, -12.0f);
DirectionalLight light1x
= new DirectionalLight(light1Colorx, light1Directionx);
light1x.setInfluencingBounds(boundsx);
Humanoid.addChild(light1x);
// R�gler la lumi�re ambiante
Color3f ambientColorx = new Color3f(1.0f, 1.0f, 1.0f);
AmbientLight ambientLightNodex = new AmbientLight(ambientColorx);
ambientLightNodex.setInfluencingBounds(boundsx);
Humanoid.addChild(ambientLightNodex);
// END BallRebound
// Apparence BODY
// Configurer les couleurs
Color3f blackbody = new Color3f(0.0f, 0.0f, 0.0f);
Color3f whitebody = new Color3f(1.0f, 1.0f, 1.0f);
Color3f redbody = new Color3f(0.8f, .85f, .85f);
// Configurer la texture
//if I want it in Black and white i need to replace RGB by LUMINANCE
TextureLoader loaderbody = new TextureLoader("C:\\java3d\\body.jpg", "RGB", new Container());
Texture texturebody = loaderbody.getTexture();
texturebody.setBoundaryModeS(Texture.WRAP);
texturebody.setBoundaryModeT(Texture.WRAP);
texturebody.setBoundaryColor( new Color4f( 1.0f, 1.0f, 0.0f, 0.0f ) );
// Configurer les attributs de la texture
// Param�tres possibles : REPLACE, BLEND ou DECAL (ici, MODULATE)
TextureAttributes texAttrbody = new TextureAttributes();
texAttrbody.setTextureMode(TextureAttributes.MODULATE);
Appearance apbody = new Appearance();
apbody.setTexture(texturebody);
apbody.setTextureAttributes(texAttrbody);
//Configurer le mat�riau
apbody.setMaterial(new Material(redbody, blackbody, redbody, blackbody, 1.0f));
// Cr�er une sph�re pour y appliquer les textures
int primflagsbody = Primitive.GENERATE_NORMALS + Primitive.GENERATE_TEXTURE_COORDS;
// End Apparence BODY
// Apparence BODYHEAD
// Configurer les couleurs
Color3f blackbodyH = new Color3f(0.0f, 0.0f, 0.0f);
Color3f whitebodyH = new Color3f(1.0f, 1.0f, 1.0f);
Color3f redbodyH = new Color3f(0.8f, .85f, .85f);
// Configurer la texture
//if I want it in Black and white i need to replace RGB by LUMINANCE
TextureLoader loaderbodyH = new TextureLoader("C:\\java3d\\head.jpg", "RGB", new Container());
Texture texturebodyH = loaderbodyH.getTexture();
texturebodyH.setBoundaryModeS(Texture.WRAP);
texturebodyH.setBoundaryModeT(Texture.WRAP);
texturebodyH.setBoundaryColor( new Color4f( 1.0f, 1.0f, 0.0f, 0.0f ) );
// Configurer les attributs de la texture
// Param�tres possibles : REPLACE, BLEND ou DECAL (ici, MODULATE)
TextureAttributes texAttrbodyH = new TextureAttributes();
texAttrbodyH.setTextureMode(TextureAttributes.MODULATE);
Appearance apbodyH = new Appearance();
apbodyH.setTexture(texturebodyH);
apbodyH.setTextureAttributes(texAttrbodyH);
//Configurer le mat�riau
apbodyH.setMaterial(new Material(redbodyH, blackbodyH, redbodyH, blackbodyH, 1.0f));
// Cr�er une sph�re pour y appliquer les textures
int primflagsbodyH = Primitive.GENERATE_NORMALS + Primitive.GENERATE_TEXTURE_COORDS;
// End Apparence BODY HEAD
//for the trunk c le corps
TransformGroup fortheTrunk = new TransformGroup();
//will allow to modify object wgile executing
fortheTrunk.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
//alpha rotation time related
Alpha rotationAlpha2=new Alpha(-1,9000);
//behviour for our rotation
RotationInterpolator rotator2= new RotationInterpolator(rotationAlpha2,fortheTrunk);
// area where rotation will be
BoundingSphere bounds2=new BoundingSphere();
rotator2.setSchedulingBounds(bounds2);
fortheTrunk.addChild(rotator2);
//end of rtotation
Alpha transAlphahuman=new Alpha(-1,600);
//transform 3d trans for the interpolatipon HUMANOID
Transform3D transhumanoid=new Transform3D();
//matrix for 2positions
Point3f[] cheminhuman=new Point3f[3];
cheminhuman[0]=new Point3f(0.8f,0.0f,0.0f);
cheminhuman[1]=new Point3f(-0.8f,0.0f,0.0f);
cheminhuman[2]=new Point3f(0.8f,0.0f,0.0f);
//matrix of floats to make the dots match with timeline
float[] timePositionhuman={0.0f,0.50f,1.0f};
PositionPathInterpolator interpolhuman=new PositionPathInterpolator(transAlphahuman,fortheTrunk,transhumanoid,timePositionhuman,cheminhuman);
BoundingSphere bounds4=new BoundingSphere();
interpolhuman.setSchedulingBounds(bounds4);
fortheTrunk.addChild(interpolhuman);
//add the trunk to the branchgroup
Humanoid.addChild(fortheTrunk);
TransformGroup zeTrunk = new TransformGroup();
zeTrunk.addChild(new com.sun.j3d.utils.geometry.Box(.55f,.80f,.50f,
primflagsbody,apbody));
//t3D for the head= bouge up
Transform3D T3DHead = new Transform3D();
T3DHead.set(new Vector3f(0f,1.1f,0f));
//create a tranform group for this t3Dhead
TransformGroup fortheHead = new TransformGroup();
fortheHead.setTransform(T3DHead);
//add the box head
//fortheHead.addChild(new com.sun.j3d.utils.geometry.Box(.20f,.20f,.10f, primflagsbody,apbody));
fortheHead.addChild(new com.sun.j3d.utils.geometry.Sphere(0.35f,primflagsbodyH,apbodyH));
/* I dont need that anymore it was for putting a flat texture on a face. I chose a sphere instead!
//transform 3D for the face
Transform3D T3DFace = new Transform3D();
T3DFace.set(new Vector3f(0f,0f,.14f));
//create a TransformGroup for this Face
TransformGroup Face = new TransformGroup();
Face.setTransform(T3DFace);
//add the child box to the face;
Face.addChild(new com.sun.j3d.utils.geometry.Box(.20f,.20f,.2f,
primflagsbodyH,apbodyH));
//add this face to the head as a child
fortheHead.addChild(Face);
//tranform3d left arm
Transform3D T3DArmL = new Transform3D();
T3DArmL.set(new Vector3f(-0.79f,0.73f,0f));
//create Tranform Group for the leftarm
TransformGroup fortheArmL = new TransformGroup();
fortheArmL.setTransform(T3DArmL);
//add the group for upperarm
TransformGroup ArmL = new TransformGroup();
ArmL.addChild(new com.sun.j3d.utils.geometry.Box(.25f,.14f,.10f,
primflagsbody,apbody));
fortheArmL.addChild(ArmL);
//create a transform3D for the forearmleft
Transform3D T3DForearmL = new Transform3D();
T3DForearmL.set(new Vector3f(-.51f,0f,0f));
//create the tranformgroup for the forearmleft
TransformGroup ForearmL = new TransformGroup();
ForearmL.setTransform(T3DForearmL);
//add the child box to forearm
ForearmL.addChild(new com.sun.j3d.utils.geometry.Box(.20f,.14f,.10f,
primflagsbody,apbody));
ArmL.addChild(ForearmL);
//create transform 3d for the lefthand
Transform3D T3DHandL = new Transform3D();
T3DHandL.set(new Vector3f(-.42f,0f,0f));
//create the child tranform group for the box of the hand
TransformGroup HandL= new TransformGroup();
HandL.setTransform(T3DHandL);
//add the child hand to the forearm
ForearmL.addChild(HandL);
//create the box for the handLeft
HandL.addChild(new com.sun.j3d.utils.geometry.Box(.10f,.140f,.10f,
primflagsbody,apbody));
//Right Arm
//tranform3d right arm
Transform3D T3DArmR = new Transform3D();
T3DArmR.set(new Vector3f(0.79f,0.73f,0f));
//create Tranform Group for the right arm
TransformGroup fortheArmR = new TransformGroup();
fortheArmR.setTransform(T3DArmR);
//add the group for upperarm right
TransformGroup ArmR = new TransformGroup();
ArmR.addChild(new com.sun.j3d.utils.geometry.Box(.25f,.14f,.10f, primflagsbody,apbody));
//com.sun.j3d.utils.geometry.Box.GENERATE_NORMALS,new Appearance()));
fortheArmR.addChild(ArmR);
//create a transform3D for the forearmright
Transform3D T3DForearmR = new Transform3D();
T3DForearmR.set(new Vector3f(.51f,0f,0f));
//create the tranformgroup for the forearmright
TransformGroup ForearmR = new TransformGroup();
ForearmR.setTransform(T3DForearmR);
//add the child box to forearmright
ForearmR.addChild(new com.sun.j3d.utils.geometry.Box(.20f,.14f,.10f, primflagsbody,apbody));
ArmR.addChild(ForearmR);
//create transform 3d for the righthand
Transform3D T3DHandR = new Transform3D();
T3DHandR.set(new Vector3f(.42f,0f,0f));
//create the child tranform group for the box of the hand
TransformGroup HandR= new TransformGroup();
HandR.setTransform(T3DHandR);
//add the child hand to the forearmright
ForearmR.addChild(HandR);
//create the box for the handright
HandR.addChild(new com.sun.j3d.utils.geometry.Box(.10f,.14f,.10f, primflagsbody,apbody));
//Left Leg
//tranform3d left leg
Transform3D T3DLegL = new Transform3D();
T3DLegL.set(new Vector3f(0.43f,-1.23f,0f));
//create Tranform Group for the leftleg
TransformGroup fortheLegL = new TransformGroup();
fortheLegL.setTransform(T3DLegL);
//add the group for uppeleg
TransformGroup LegL = new TransformGroup();
LegL.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.35f,.10f, primflagsbody,apbody));
fortheLegL.addChild(LegL);
//create a transform3D for the downlegleft
Transform3D T3DDownLegL = new Transform3D();
T3DDownLegL.set(new Vector3f(0f,-.70f,0f));
//create the tranformgroup for the downegleft
TransformGroup DownLegL = new TransformGroup();
DownLegL.setTransform(T3DDownLegL);
//add the child box to downlegm
DownLegL.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.25f,.10f, primflagsbody,apbody));
LegL.addChild(DownLegL);
//create transform 3d for the leftfeet
Transform3D T3DFeetL = new Transform3D();
T3DFeetL.set(new Vector3f(.0f,-.45f,0f));
//create the child tranform group for the box of thefeet
TransformGroup FeetL= new TransformGroup();
FeetL.setTransform(T3DFeetL);
//add the child hand to the downleg
DownLegL.addChild(FeetL);
//create the box for the feetLeft
FeetL.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.10f,.15f, primflagsbody,apbody));
//Right Leg
//tranform3dright leg
Transform3D T3DLegR = new Transform3D();
T3DLegR.set(new Vector3f(-0.43f,-1.23f,0f));
//create Tranform Group for the righttleg
TransformGroup fortheLegR = new TransformGroup();
fortheLegR.setTransform(T3DLegR);
//add the group for uppelegR
TransformGroup LegR = new TransformGroup();
LegR.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.35f,.10f, primflagsbody,apbody));
fortheLegR.addChild(LegR);
//create a transform3D for the downlegright
Transform3D T3DDownLegR = new Transform3D();
T3DDownLegR.set(new Vector3f(0f,-.70f,0f));
//create the tranformgroup for the downegright
TransformGroup DownLegR = new TransformGroup();
DownLegR.setTransform(T3DDownLegR);
//add the child box to downlegRight
DownLegR.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.25f,.10f, primflagsbody,apbody));
LegR.addChild(DownLegR);
//create transform 3d for the rightfeet
Transform3D T3DFeetR = new Transform3D();
T3DFeetR.set(new Vector3f(.0f,-.45f,0f));
//create the child tranform group for the box of thefeetright
TransformGroup FeetR= new TransformGroup();
FeetR.setTransform(T3DFeetR);
//add the child feet right to the downleg
DownLegR.addChild(FeetR);
//create the box for the feetright
FeetR.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.10f,.15f, primflagsbody,apbody));
//rajoute la box zetrunk et des fils
fortheTrunk.addChild(zeTrunk);
fortheTrunk.addChild(fortheHead);
fortheTrunk.addChild(fortheArmL);
fortheTrunk.addChild(fortheArmR);
fortheTrunk.addChild(fortheLegL);
fortheTrunk.addChild(fortheLegR);
//DEBUT CUBE
//beginning of rotation
TransformGroup objSpin=new TransformGroup();
//create transform 3d for box which spin
Transform3D T3DobjSpin = new Transform3D();
T3DobjSpin.set(new Vector3f(-2.50f,.45f,0f));
//create the child tranform group for the box which spin
objSpin.setTransform(T3DobjSpin);
//will allow to modify object while executing
objSpin.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
//alpha rotation time related
Alpha rotationAlpha=new Alpha(-1,900);
Alpha transAlpha=new Alpha(-1,900);
//transform 3d trans for the interpolatipon
Transform3D trans=new Transform3D();
//matrix for 2positions
Point3f[] chemin=new Point3f[3];
chemin[0]=new Point3f(-2.8f,0.40f,1.0f);
chemin[1]=new Point3f(-0.8f,0.40f,1.0f);
chemin[2]=new Point3f(-2.8f,0.40f,1.0f);
//matrix of floats to make the dots match with timeline
float[] timePosition={0.0f,0.50f,1.0f};
PositionPathInterpolator interpol=new PositionPathInterpolator(transAlpha,objSpin,trans,timePosition,chemin);
BoundingSphere bounds3=new BoundingSphere();
interpol.setSchedulingBounds(bounds3);
objSpin.addChild(interpol);
//behviour for our rotation
RotationInterpolator rotator= new RotationInterpolator(rotationAlpha,objSpin);
// area where rotation will be
BoundingSphere bounds=new BoundingSphere();
rotator.setSchedulingBounds(bounds);
objSpin.addChild(rotator);
//end of rtotation
//add transform group objspin to branchgroup humanoid
Humanoid.addChild(objSpin);
//test a cube which heritate of this rotation?
objSpin.addChild(new ColorCube(0.25));
//test
//module cube + transparency
// create an ALPHA transparency apparence (invisible)
Appearance app0x=new Appearance();
app0x.setColoringAttributes(new ColoringAttributes(new Color3f(0.3f,0.2f,1.0f),ColoringAttributes.SHADE_GOURAUD));
app0x.setTransparencyAttributes(new TransparencyAttributes(TransparencyAttributes.NICEST,0.5f));//0.5f represente 50% de transparence
// create the blue sphere which rotate
Transform3D transsphere=new Transform3D();
transsphere.set(new Vector3f(0.0f, -0.1f, 0.3f));
TransformGroup TGsphere=new TransformGroup(transsphere);
TGsphere.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
objSpin.addChild(TGsphere);
//objRotatecube.addChild(TGsphere);
TGsphere.addChild( new Sphere(0.3f,app0x) );
//End Module Cube + Transparency
//END CUBE
//DEBUT WHOLE BIRD
//beginning of Rotation for Bird
TransformGroup Bird=new TransformGroup();
//will allow to modify object while executing
Bird.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
//alpha rotation time related
Alpha rotationAlphaBird=new Alpha(-1,400);
Alpha transAlphaBird=new Alpha(-1,5990);
//transform 3d trans for the interpolatipon
Transform3D transBird=new Transform3D();
//create transform 3d for the Bird
transBird.set(new Vector3f(1.90f,-.45f,0.9f));
//create the child tranform group for the Bird Box
Bird.setTransform(transBird);
//matrix for 2positions
Point3f[] cheminBird=new Point3f[3];
cheminBird[0]=new Point3f(1.95f,0.0f,-6.8f);
cheminBird[1]=new Point3f(1.95f,0.90f,-0.8f);
cheminBird[2]=new Point3f(1.95f,0.0f,5.8f);
//matrix of floats to make the dots match with timeline
float[] timePositionBird={0.00f,0.50f,1.0f};
PositionPathInterpolator interpolBird=new PositionPathInterpolator(transAlphaBird,Bird,transBird,timePosition,cheminBird);
BoundingSphere bounds3Bird=new BoundingSphere();
//BoundingSphere bounds3Bird= new BoundingSphere(new Point3d(0.0, 0.0, -50.0), 0.5);
interpolBird.setSchedulingBounds(bounds3Bird);
Bird.addChild(interpolBird);
//behviour for our rotation
RotationInterpolator rotatorBird= new RotationInterpolator(rotationAlphaBird,Bird);
// area where rotation will be
BoundingSphere boundsBird=new BoundingSphere();
rotatorBird.setSchedulingBounds(boundsBird);
Bird.addChild(rotatorBird);
//end of rotation For Bird
//add transform group objspin to branchgroup humanoid
Humanoid.addChild(Bird);
//debut test APPARENCE Wing Left
//test textures
// Configurer les couleurs
Color3f blackx = new Color3f(0.0f, 0.0f, 0.0f);
Color3f whitex = new Color3f(1.0f, 1.0f, 1.0f);
Color3f redx = new Color3f(0.7f, .75f, .75f);
// Configurer la texture
TextureLoader loaderx = new TextureLoader("C:\\java3d\\pois.jpg", "RGB", new Container());
Texture texturex = loaderx.getTexture();
texturex.setBoundaryModeS(Texture.WRAP);
texturex.setBoundaryModeT(Texture.WRAP);
texturex.setBoundaryColor( new Color4f( 0.0f, 1.0f, 0.0f, 0.0f ) );
// Configurer les attributs de la texture
// Param�tres possibles : REPLACE, BLEND ou DECAL (ici, MODULATE)
TextureAttributes texAttrx = new TextureAttributes();
texAttrx.setTextureMode(TextureAttributes.REPLACE);
Appearance apx = new Appearance();
apx.setTexture(texturex);
apx.setTextureAttributes(texAttrx);
//Configurer le mat�riau
apx.setMaterial(new Material(redx, blackx, redx, blackx, 1.0f));
int primflagsx = Primitive.GENERATE_NORMALS + Primitive.GENERATE_TEXTURE_COORDS;
//End test APPARENCE Wing Left
//test a cube which heritate of this rotation?
// Bird.addChild(new ColorCube(0.8));
//test bird body
// Bird.addChild(new com.sun.j3d.utils.geometry.Box(.25f,.22f,.45f,
// com.sun.j3d.utils.geometry.Box.GENERATE_NORMALS,new Appearance()));
Bird.addChild(new com.sun.j3d.utils.geometry.Box(.25f,.22f,.45f, primflagsx,apx));
//test WingRightBird
//create a transform3D for the BirdWIngR
Transform3D T3DBirdWingR = new Transform3D();
T3DBirdWingR.set(new Vector3f(0.45f,.0f,-0.35f));
//create the tranformgroup for the BirdWIngR
TransformGroup BirdWingR = new TransformGroup();
BirdWingR.setTransform(T3DBirdWingR);
//add the child box to BirdWIngR
// BirdWingR.addChild(new com.sun.j3d.utils.geometry.Box(.43f,.07f,.22f,
// com.sun.j3d.utils.geometry.Box.GENERATE_NORMALS,new Appearance()));
//End test WingRightBird
////////comments/////////
//beginning of Rotating WINR
//----------------------d�but de la cr�ation de la rotation--------------------------------
TransformGroup WinRSpin=new TransformGroup();
// permet de modifier l'objet pendant l'execution
WinRSpin.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
// on cr�e un fonction de rotation au cours du temps
Alpha rotationAlphaWinRSpin=new Alpha(-1,1000);
Transform3D rot = new Transform3D();
rot.rotX((float)Math.PI/- 2.0f);
//rot.rotX(-45);
//rot.rotX((-Math.PI / 4.0)+30);
//rot.rotZ((-Math.PI / 4.0));
//rot.rotX(-Math.PI / 4.0);
//rot.rotY(-Math.PI / 4.0);
// rot.rotZ(-Math.PI / 4.0);
// rot.rotY(00);
//rot.rotZ(45);
// on cr�e un comportement qui va appliquer la rotation � l'objet voulu
// on d�finit la zone sur laquelle va s'appliquer la rotation
//RotationInterpolator rotatorWinRSpin=new RotationInterpolator(rotationAlphaWinRSpin,WinRSpin, rot, 0.50f,(float)(2.0*Math.PI));
RotationInterpolator rotatorWinRSpin=new RotationInterpolator(rotationAlphaWinRSpin,WinRSpin, rot, 25,26);
BoundingSphere boundsWinRSpin=new BoundingSphere(new Point3d((Math.PI / 4.0), 0.0, 0.0), 0.5);
// boundsWinRSpin.setCenter(new Point3d((Math.PI / 4.0),0,0));
boundsWinRSpin.setCenter(new Point3d(-10,0,0));
//boundsWinRSpin.setCenter();
//test put a t3d to a boundingsphere??
//Transform3D T3Dbounding = new Transform3D();
// T3Dbounding.set(new Vector3f(5.00f,0.0f,0.00f));
//WinRSpin.setTransform(T3Dbounding);
//end test put a t3d to a boundingsphere, not working
rotatorWinRSpin.setSchedulingBounds(boundsWinRSpin);
// test BoundingSphere of BODY BIRD rotatorWinRSpin.setSchedulingBounds(boundsBird);
WinRSpin.addChild(rotatorWinRSpin);
//----------------------End de la cr�ation de la rotation--------------------------------
BirdWingR.addChild(WinRSpin);
// on cree un cube qui h�rite de la rotation
//WinRSpin.addChild(new ColorCube(0.5));// de rayon 50 cm
WinRSpin.addChild(new com.sun.j3d.utils.geometry.Box(.43f,.07f,.22f, primflagsx,apx));
//End of Rotating WINR
//////// END comments/////////
//I commented the following, that was the TEST sinusoidal, rotation which help me understood how to rotate wingR
// -----------d�but de cr�ation de la rotation--------------------------------------------------
TransformGroup objSpinxx=new TransformGroup();
// permet de modifier l'objet pendant l'execution
objSpinxx.setCapability(TransformGroup.ALLThank you very much!
I cant believe this little comment has been so helpful!
But yes it is:
I explain, despite my efforts to find, googled it, forums, faqs, etc...
no where it mentionned the manifest.fm file is... INSIDE the .jar!
Your comment "a zip" made me attempt to open it with winrar, and I found a manifest.fm file inside!
So far I was editing the one at the "source" of my project and rebuilding it with netbeans.
I am going to try that now.
Actually.... :( no its mentionning my main class!
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b19 (Sun Microsystems Inc.)
Main-class: courseworkjava3d.Simple3D
Class-Path:
X-COMMENT: Main-Class will be added automatically by buildWell I have no problems uploading you the .jar, it is for a coursework it is not a private project or whatever:
http://www.uploading.com/files/CM2LKWYU/BetaCourseworkJava3d_Final.jar.html
Oh and I felt on your comment "dont ask us" as if I was suppose to know... i'm a beginner, I did not know that! And I tried to give you so many infos so you dont lose your time if you want to help, especially as after my own research I found many, many results for this "main class" and I tried a few solutions!
Edited by: CupofTea on Apr 13, 2008 3:28 AM -
The manifest file "could not find the main class."
The main class file is inside a folder in the created Jar file, but is not in a package. But when I double-click the Jar file, it says it could not find the main class. I am using Windows. I have tried each of the following lines in the manifest, but none are working:
Main-Class: Installer
Main-Class: setupFiles/programFile/Installer
Main-Class: setupFiles\programFile\Installer
Main-Class: setupFiles.programFile.InstallerThe main class is inside the setupFiles/programFile directory. Please Help!
Thanks in advance,
~ TomHi Tom,
The main class file is inside a folder in the created
Jar file, but is not in a package. This is the problem. A JAR file is not an arbitrary ZIP file, where you can arrange directories as you like. The structure of a JAR file always has to follow the package structure. So your Installer class must be on the top level and not in directory setupFiles/programFile.
You might add non-class files in other directores and can access them as resources, but you have to put the class files into their "natural" directories. -
Could not find the main class error with executable jar
Hello,
I have troubles creating an executable jar file and I ran out of ideas how to solve it so I would appreciate some help.
I have created a jar file with the export function in eclipse
the Manifest.MF file contains:
Manifest-Version: 1.0
Main-Class: view.AppTennisViewI tried starting the file with a batch file which contains following code:
@echo off
javaw -classpath c:\TennisHSQLDB_GC2\tennisApp.jar
@start javaw -jar tennisApp.jar
exitthe batch file and the jar are both located in c:\TennisHSQLDB_GC2.
When i try command line I get the same result.
I also tried alternate statements such as SET CLASSPATH iso javaw -classpath and including the classpath in the manifest file but no luck. It keeps given me the error: could not find the main class. program will exit
Anyone any suggestions for my problem?nevermind, found it.
classpath in manifest was incorrect -
Could not find the main class - Problem with Webservice-Access
Hello Everybody,
I'm having serious Problems with accessing a WebService (Tomcat-Axis) per executable jar-File.
I constructed a simple GUI with 3 Textboxes 1 Button and 1 Resultbox.
I use eclipse so it was no Problem to simple generate the Backgroundclient by Processing the .wsdl-File of the WS.
Now I do this:
Head_tServiceLocator serviceLocator = new Head_tServiceLocator();
Head_t service = serviceLocator.getRPCCall();
RPCCallSoapBindingStub Head_t = (RPCCallSoapBindingStub) service;and use the Webservice like an Object.
All this works very well.
Now the Problem:
Head_t service = serviceLocator.getRPCCall();this Line has to throw a ServiceException.
If i add a try-catch Block to Process the Message JAVA tells me after i exported to JAR (with Manifest-stuff and so on) and double Click on the JAR the following :
Could not find the main Class - Program will exit.
And if i add a throws Declaration to the Methodheader it tells me:
Fatal Exception Occured - Program will exit
But if i Comment out that Line at least the GUI is being displayed (so it DOES find the main-Class). But then of course the Webservice won't be accessed.
All the JARs needed (axis.jar, commons-discovery.jar and so on) are in the same Directory as the Webservice-Client.jar
Please Help me.
Greets,
ZapI am not done any typing mistake while creating the jar file i already followed the suggestion that you have mentioned but still the same error .
This is my MANIFEST.MF file created under META-INF folder
Manifest-Version: 1.0
Class-Path: qtjambi-4.4.3_01.jar qtjambi-win32-msvc2005-4.4.3_01.jar
Created-By: 1.5.0 (Sun Microsystems Inc.)
Main-Class: Ui_MainWindow
When i extracted the app.jar following this i got
1. META-INF folder inside that MAINFEST.MF file the contents i have already placed above
2. qtjambi-4.4.3_01.jar
3. qtjambi-win32-msvc2005-4.4.3_01.jar
4. Ui_MainWindow.class
Please tell me whats wrong in that i can also give you the app.jar file please let me know the email id .. -
Could not find the main class ! exception.
hi,
I create one java project. for this I am using netbeans 5.
I try to run the project jar file stff.jar. When run using "java -jar stff.jar " , it throws error "could not find the main class. program will exit".
I am extracting this jar file, in manifest, main class is set.
i.e, in manifest, Main-Class: ems.emsFrame.
ems is my folder ,inside it main class kept.
here, emsFrame is my main class where " public static void main (String args[])" is located.
I am also, set the class path for that class folder(ems) and run.
The same error ("could not find the main class. program will exit") occured.
Why this error occured.
also,I am uninstall the jdk and reinstall .
whats my problem.
byeyes sir.
In projects, inside it, in Libraries ,the SNMPInquisitor.jar is located.
inside that jar, snmp package is located.
but, when build and run, there is no problem sir.
Only when i try to run the stff.jar file (java -jar stff.jar), that time only the exception thrown.
when I double click that jar, it show, "could not find the main class. program will exit". But, I am adding the main class in manifest. when i open manifest.mf, it show, Main-Class: ems.emsFrame.
but, when i run jar thro' cmd window, it shows,
Exception in thread "main" java.lang.NoClassDefFoundError: snmp/SNMPGetException
at ems.emsFrame.<init>(emsFrame.java:1163)
at ems.emsFrame.<clinit>(emsFrame.java:1155).
i am still trying it. -
Can not start WebLogic in Eclipse. Error: "Could not find the main class."
I have installed Eclipse 2.0 and WebLogic Server 6.1. and the WebLogc plug in from GENUITEC (and jdk1.3.1_04, on Win2K Server). After I have done the configuration, the WebLogic start/stop buttons are integried into the Eclipse Toolbar, but when I click on the start button to start Weblogic, it pops up a dialog box "Java Virtual Machine Launcher" with message: "Could not find the main class. Program will exit!"
Starting WebLogc Server from the Start panel works fine.
Does any one have seen this before or have a suggestion what I should do?
Many many thanks in advance.
HuanWeblogic must be started with a full JDK; otherwise
JSPs and dynamic EJB stubs could not be deployed. The
error message
indicates you are attempting to use a JRE. Configure
Eclipse JRE to point to a JDK. The product
documentation will help you with this process. It does not work for me. :-(
I have tried JDK 1.3.1 and 1.4.1: same result: I get a "Could not find the main class: Program will exit"
For free expert support please consider contacting
Genuitec at [email protected] If just want any
answer ask a newsgroup.
WayneI'll try the support at '[email protected]' :)
Michel
Michel Szybist
[email protected]
Fax: +33 (0)173729897
SMS: http://www.szybist.net/
Maybe you are looking for
-
Installation of EHP4 - Has anyone got this working
Hi All; I know that SAP will not like to hear this, but the installation of EPH4 using Solution Manager is a frustrating exercise in futility. I have been trying to install EHP4 for over 2 months now and it keeps failing. I have an open HIGH ticket
-
Captivate 5.5 skin editor won't open
I'm working in Captivate 5.5, and the Skin Editor won't open, either from the Project menu or with Shift+F11. Any idea what's causing that? Is there another way to get at the Skin Editor, such as through the Publish dialog box? I couldn't find anothe
-
How long is the wait for uptodate program?
I bought a macbook pro on 23rd July which is after Lion release, and it still shipped with Snow Leopard. Applied to the "uptodate" program on 24th, and it is now 1st of august! Nine days and waiting, and no response at all. What am I suppose to do?
-
Apple Bluetooth Mouse Problems ?
Hi my bluetooth mouse is really playing up, for example when i move the mouse the tracking is really off... i have to keep disconnecting then reconnecting to make it work propley..... i just repaired the bluetooth connection 6 times to make the mouse
-
Can we have 12c db console and 11g database.
Hi, Quick question on having the dbconsole version higher than DB version ? Is it possible to have dbsonole 12c on 11gR2 DB ? Thanks,