Java error: package does not exist

Post Reply
User avatar
seal58
Posts: 394
Joined: Fri Jul 12, 2019 5:28 pm
Location: Rostock, Germany
Contact:

Java error: package does not exist

Post by seal58 »

Hi there,

while I used own Java utility package in several older VMD projects, it is not possible in a new project.
Compiler message is

"C:\users\...\MyModule.java:15: Error: Package com.polymond.utility does not exist
import com.polymond.utility.*;
^
1 Error
Compile failed, return code 1"

What I did:
- both VM and VMD are up to date (2.9.2)
- JDK is version 22
- .java files and .class files are in
D:\Roland\Java\classes\com\polymond\utility
- set Windows environment CLASSPATH:
D:\Roland\Java\classes\;
D:\Roland\Java\com\polymond\utility\;
- compiled my Java classes again by means of "Java Editor, v21.14, 64 bit"
- loaded and compiled older VMD projects (which also use my package) without compiler errors
- opened old and new project in two VMD instances at same time in order to compare VMD preverence settings

Further dates:
- I miss "Module Source" pull down menu above VMD java code pane.
- All older VMD projects and Java utilities I've created on a Windows 10 PC, now I use Windows 11 on a new PC.

I'm afraid, I missed any small setting but I cannot find out what.

I'd be happy if somebody can give me a hint how to solve my problem.

Roland
User avatar
seal58
Posts: 394
Joined: Fri Jul 12, 2019 5:28 pm
Location: Rostock, Germany
Contact:

Re: Java error: package does not exist

Post by seal58 »

I just remembered the extra options in VMD Properties pane. :oops:

During coding I close all other panes than Source Code pane. So I forgot that other menue.

However, I'm happy again.
Post Reply

Return to “Module Designer”