Compiling Res code layer ?

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

Moderator: Phades

Compiling Res code layer ?

Postby mvgulik » Fri May 10, 2013 12:08 pm

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


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

Re: Compiling Res code layer ?

Postby boshaw » Fri May 10, 2013 1:46 pm

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
User avatar
boshaw
 
Posts: 1590
Joined: Tue Jun 01, 2010 10:22 pm

Re: Compiling Res code layer ?

Postby mvgulik » Fri May 10, 2013 5:36 pm

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 ...
mvgulik
 
Posts: 3774
Joined: Fri May 21, 2010 2:29 am


Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 1 guest