Classpath issues in Java 1.5 - Servoy 2.2.1 build 333

what does the inside of the jar look like?

(it is a zip so you can look into it will the zip tool you use)

i didn’t see this before but this is youre package:

my.simple.bean;

but all the dirs you talk about goes:

bean/simple/my

that is wrong
is must exactly follow the package structure.
my/simple/bean

Hello Johan -

Again thank you very much for your help with this problem. It is very important to my company.

I made the change that you advised. I have attached the resulting bean for your examination. Unfortunately it is still failing.

The Simblebean.java file is below so that you can easily reproduce this problem.

package my.simple.bean;
import java.awt.*;
import java.io.Serializable;

public class Simplebean extends Canvas
implements Serializable
{
//Constructor sets inherited properties
public Simplebean(){
setSize(60,40);
setBackground(Color.red);
}
}

The manifest file used follows:

Name: my/simple/bean/Simplebean.class
Java-Bean: True

The line used to build the jar file has changed per your recommendation

jar cfm SimpleBean.jar manifest.tmp my/simple/bean/Simplebean.class

The resulting jar file was unpacked and found to contain the following

./META-INF/MANIFEST.MF
./my/simple/bean/Simplebean.class

The .log.txt file had a slightly different error after this test:

2006-03-14 02:29 : Error occured retrieving bean. Bean have been loaded, error: java.lang.ClassNotFoundException: my.simple.bean.Simplebean

Simplebean.jar (710 Bytes)

youre manifest is wrong you have a space to much between
Name: and my/simple/bean/Simplebean.class

Thank you very much Johan - Indeed that was the problem. I am very grateful for your help.

Best regards -