Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to Compile Hentai@Home

 
post Jan 5 2015, 04:14
Post #1
0920tkjp



Newcomer
**
Group: Gold Star Club
Posts: 68
Joined: 17-December 13
Level 213 (Destined)


i try JAVA SDK 1.7 / 1.8 to compile
but the JAR fail to run

have any right steps to compile??

forgive my bad english, sorry.
Thank you
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 5 2015, 04:25
Post #2
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


Did you include sqlite in the classpath?

The entire compilation is just:
CODE
javac -source 1.6 -target 1.6 -d . -classpath sqlite-jdbc-x.x.x <all source files>
jar cvfm HentaiAtHome.jar src/org/hath/base/HentaiAtHome.manifest org/hath/base/*.class
jar cvfm HentaiAtHomeGUI.jar src/org/hath/gui/HentaiAtHomeGUI.manifest src/org/hath/gui/*.png org/hath/gui/*.class


(SDK 1.7 is much better at backward compatibility with 1.6, which the code is compliant to)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 5 2015, 05:00
Post #3
The Evil Phoenix



Fiery Avian Overlord
*******
Group: Gold Star Club
Posts: 1,844
Joined: 2-December 09
Level 238 (Godslayer)


What steps did you actually do? We need to know exactly what you've done so far too to figure out what went wrong. Error logs would help too.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 5 2015, 05:01
Post #4
0920tkjp



Newcomer
**
Group: Gold Star Club
Posts: 68
Joined: 17-December 13
Level 213 (Destined)


QUOTE(blue penguin @ Jan 5 2015, 10:25) *



make.bat
CODE
@if not exist org mkdir org
@cd src
@dir /s /b *.java > ../org/srcfiles.txt
@cd ..
"C:\Program Files\Java\jdk1.7.0_71\bin\javac.exe" -source 1.6 -target 1.6 -d . -classpath sqlite-jdbc-3.7.2 @org/srcfiles.txt


makejar.bat
CODE
"C:\Program Files\Java\jdk1.7.0_71\bin\jar.exe" cvfm HentaiAtHome.jar D:/JAVA/src/org/hath/base/HentaiAtHome.manifest D:/JAVA/org/hath/base/*.class
"C:\Program Files\Java\jdk1.7.0_71\bin\jar.exe" cvfm HentaiAtHomeGUI.jar D:/JAVA/src/org/hath/gui/HentaiAtHomeGUI.manifest D:/JAVA/src/org/hath/gui/*.png D:/JAVA/org/hath/gui/*.class


replaced JAVAC / JAR to install path

HentaiAtHome.jar @ 92.4KB 94,621
HentaiAtHomeGUI.jar @ 24.5KB 25,165
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 5 2015, 05:10
Post #5
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE
HentaiAtHome.jar @ 92.4KB 94,621
HentaiAtHomeGUI.jar @ 24.5KB 25,165

That's useless without the version of the code you're building. (and useless for me and for Phoenix, as neither of us have a single MS windows machine)

Also, what do you understand by "it is not working"?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 5 2015, 05:14
Post #6
0920tkjp



Newcomer
**
Group: Gold Star Club
Posts: 68
Joined: 17-December 13
Level 213 (Destined)


QUOTE(blue penguin @ Jan 5 2015, 11:10) *



I need to provide any kind of information?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 5 2015, 05:24
Post #7
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


You don't *need* to do anything, you're a *free* man. (IMG:[invalid] style_emoticons/default/laugh.gif)

But it would be *wise* to consider the fact that all we know comes from your posts.
i.e. we have no clue of your machine configuration,
errors or warnings during the compilation,
error messages when you try to run the jar,
the reason why you're compiling the jar,
the way how you're running it,
whether you have had run an H@H client before and know the correct output,
or based on what output you consider H@H to be not working.

I could enumerate more, but you get the idea with only these. You need to try to be explicit, random guesses will only get you so far.

This post has been edited by blue penguin: Jan 5 2015, 05:24
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 5 2015, 05:26
Post #8
The Evil Phoenix



Fiery Avian Overlord
*******
Group: Gold Star Club
Posts: 1,844
Joined: 2-December 09
Level 238 (Godslayer)


QUOTE(blue penguin @ Jan 4 2015, 22:10) *

That's useless without the version of the code you're building. (and useless for me and for Phoenix, as neither of us have a single MS windows machine)

I have a Windows VM that I use because I need Office 2k13 for school. So I do have a Windows machine, I just don't use it for H@H since I just donate BTC for server slots instead.

------

And to echo what blue said, with some changes

QUOTE(blue penguin @ Jan 4 2015, 22:24) *

You don't *need* to do anything, you're a *free* man. (IMG:[invalid] style_emoticons/default/laugh.gif)

But it would be *wise* to consider the fact that all we know comes from your posts.
i.e. we have no clue of your machine configuration,
errors or warnings during the compilation,
error messages when you try to run the jar,
the reason why you're compiling the jar,
the way how you're running it,
whether you have had run an H@H client before and know the correct output,
or based on what output you consider H@H to be not working.

I could enumerate more, but you get the idea with only these. You need to try to must be explicit, random guesses will only get you so far.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 5 2015, 06:25
Post #9
0920tkjp



Newcomer
**
Group: Gold Star Club
Posts: 68
Joined: 17-December 13
Level 213 (Destined)


-source 1.6 -target 1.6
change to
-source 1.7 -target 1.7

can be run now

THX for help
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 9th May 2025 - 05:01