Compiling Res code layer ?

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

mvgulik
Posts: 4101
Joined: Fri May 21, 2010 2:29 am

Compiling Res code layer ?

Post by mvgulik »

I'm having problems with figuring out how to compile res-file code layers.

The problem I'm having (as Java noob) is that I don't know how to linkup to the other code files that seems to be needed to compile the res layer code file.

Java JDK is installed, and I'm trying to use Javac to compile some code layer file.

Code: Select all

>..\javac.exe -verbose -g -classpath  "..\Clients\Default\haven.jar" Fact.java 
[parsing started RegularFileObject[Fact.java]]
[parsing completed 31ms]
[search path for source files: ..\Clients\Default\haven.jar,..\Clients\Default\jogl.jar,..\Clients\Default\gluegen-rt.jar,..\Clients\Default\haven-res.jar]
[search path for class files: ..\jre\lib\resources.jar, ...  ..\Clients\Default\haven.jar,..\Clients\Default\jogl.jar,..\Clients\Default\gluegen-rt.jar,..\Clients\Default\haven-res.jar]
[loading ZipFileIndexFileObject[..\Clients\Default\haven.jar(haven/resutil/GrowingPlant.class)]]
[loading ZipFileIndexFileObject[..\Clients\Default\haven.jar(haven/resutil/GrowingPlant$Factory.class)]]
Fact.java:3: error: package GrowingPlant does not exist
public class Fact extends GrowingPlant.Factory
                                      ^
[checking Fact]
[total 484ms]
1 error
:?
User avatar
boshaw
Posts: 1612
Joined: Tue Jun 01, 2010 10:22 pm

Re: Compiling Res code layer ?

Post by boshaw »

mvgulik wrote:I'm having problems with figuring out how to compile res-file code layers.

The problem I'm having (as Java noob) is that I don't know how to linkup to the other code files that seems to be needed to compile the res layer code file.

Java JDK is installed, and I'm trying to use Javac to compile some code layer file.

Code: Select all

>..\javac.exe -verbose -g -classpath  "..\Clients\Default\haven.jar" Fact.java 
[parsing started RegularFileObject[Fact.java]]
[parsing completed 31ms]
[search path for source files: ..\Clients\Default\haven.jar,..\Clients\Default\jogl.jar,..\Clients\Default\gluegen-rt.jar,..\Clients\Default\haven-res.jar]
[search path for class files: ..\jre\lib\resources.jar, ...  ..\Clients\Default\haven.jar,..\Clients\Default\jogl.jar,..\Clients\Default\gluegen-rt.jar,..\Clients\Default\haven-res.jar]
[loading ZipFileIndexFileObject[..\Clients\Default\haven.jar(haven/resutil/GrowingPlant.class)]]
[loading ZipFileIndexFileObject[..\Clients\Default\haven.jar(haven/resutil/GrowingPlant$Factory.class)]]
Fact.java:3: error: package GrowingPlant does not exist
public class Fact extends GrowingPlant.Factory
                                      ^
[checking Fact]
[total 484ms]
1 error
:?
Does Fact import haven.resutil.GrowingPlant or lie within haven.resutil package? If not add in

Code: Select all

import haven.resutil.GrowingPlant
or

Code: Select all

import haven.resutil.*
if you use more than just that and see if it works
mvgulik
Posts: 4101
Joined: Fri May 21, 2010 2:29 am

Re: Compiling Res code layer ?

Post by mvgulik »

Yep.
Changing the "import haven.resutil.GrowingPlant.Factory;" to
"import haven.resutil.GrowingPlant;" or "import haven.resutil.*;" got rid of that last error.
Thanks.

... [wrote RegularFileObject[Fact.class]] :D ...

Return to “The Wizards' Tower”