Compiling problem with Forte4 CE

Hi all,

I am new to Forte for Java and trying to use it for an java-application written some time ago.

My little application works fine with "java -classpath "j2sdk1.4.0-directory, etc." in the Dos command line, but when I'm trying to execute it via Forte, I get an error-message: "java.lang.NoClassDefFoundError: ... wrong name: ...".

So I'm compiling my application with Forte and execute it again - with success: it works now, no error message.

Ok, but when I want to run my application via the Dos command line again, I get the old Forte error-message "java.lang.NoClassDefFoundError: ... wrong name: ..."

In short: I cannot run my application both in Forte AND the Dos command line.

I've controlled the classpath settings and also the target and working directory, but everything seem fine...

Any suggestions?

Thanks in advance!

Tom

[908 byte] By [Rodrigo,Tom] at [2007-11-25 16:46:55]
# 1

Me again,

I forgot to mention that the package name changes while compiling with Forte. This might cause the error-messages in the Dos command line.

I tried to stop the changing without success. <a href="/cgi-bin/WebX?14@@.ee80f5d">Phillip Xiao "[nbusers] Java source package name" 7/15/02 2:19am</a> described the same problem, and I played around with the mounted filesystem, but it doesn't work.

I have the following directories:

Folder1/MyApplication/

Folder1/MyApplication/Classes/PackageName/

Folder1/MyApplication/Images

Folder1/MyApplication/Src/PackageName

My working directory is Folder1/MyApplication/ as there are several files needed in this directory.

The compiler-target-directory is also Folder1/MyApplication/.

I've mounted all of the four specified directories.

My package-name is: MyApplication.src.packagename, but should only be MyApplication [which is identical with the packagename]

I really don't know what to do... so please, please help!

Any ideas?

Tom

Rodrigo,Tom at 2007-7-2 23:26:12 > top of Java-index,Archived Forums,Sun ONE Studio 4...