[Guide] How to compile source

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 43
  1. #16
    Account Upgraded | Title Enabled! Aznkidd235 is offline
    MemberRank
    Apr 2007 Join Date
    518Posts

    Re: [Guide] How to compile source

    my bad guys i renamed my gameserver.jar to gameserver2.jar so that i didn't replace the original.

    i updated the first post.
    Last edited by Aznkidd235; 07-01-18 at 04:57 PM.

  2. #17
    Enthusiast chongtianlong is offline
    MemberRank
    Dec 2013 Join Date
    42Posts

    Re: [Guide] How to compile source

    fix.thanks

  3. #18
    Account Upgraded | Title Enabled! Elssair is offline
    MemberRank
    Dec 2013 Join Date
    334Posts

    Re: [Guide] How to compile source

    @Aznkidd235 I cannot compile ai/conditions folder, any help about this? I think is for this import but I'm not sure that what i can do for fix "import com.eclipsesource.json.JsonObject;"

    https://snag.gy/bSuP0Y.jpg

  4. #19
    Account Upgraded | Title Enabled! Aznkidd235 is offline
    MemberRank
    Apr 2007 Join Date
    518Posts

    Re: [Guide] How to compile source

    Quote Originally Posted by Elssair View Post
    @Aznkidd235 I cannot compile ai/conditions folder, any help about this? I think is for this import but I'm not sure that what i can do for fix "import com.eclipsesource.json.JsonObject;"
    https://snag.gy/bSuP0Y.jpg
    delete it if u checked those files they are 0kb with nothing inside them when u delete them close project and re-open to refresh it.

  5. #20
    Account Upgraded | Title Enabled! Elssair is offline
    MemberRank
    Dec 2013 Join Date
    334Posts

    Re: [Guide] How to compile source

    Fixed without deleting

    https://snag.gy/JeuRoZ.jpg

    Greetings,

    Elssair.

  6. #21
    Valued Member TaxBeauty is offline
    MemberRank
    Sep 2016 Join Date
    105Posts

    Re: [Guide] How to compile source

    How can I compile quickly?

  7. #22
    Account Upgraded | Title Enabled! Aznkidd235 is offline
    MemberRank
    Apr 2007 Join Date
    518Posts

    Re: [Guide] How to compile source

    Quote Originally Posted by TaxBeauty View Post
    How can I compile quickly?
    no other way, you need to do a full compile first to get the .class files you cannot export as .jar without it or you will get an error after the full compile you can compile the file you edited as single compile by simply changing this line:

    Code:
    for /r %%a in (*.java) do ( "C:\Program Files\Java\jdk1.8.0_112\bin\javac" "path_to_file.java" )

  8. #23
    Enthusiast chongtianlong is offline
    MemberRank
    Dec 2013 Join Date
    42Posts

    Re: [Guide] How to compile source

    Quote Originally Posted by mysteriocrude View Post
    Renamed the gameserver2.jar to gameserver.jar at the bat, works!
    Okay that bat took awhile running creating class. maybe my pc is bad lol.

    So I've downloaded eclipse java oxygen, import the com folder as shown below.

    and then export.

    Should I export is as Java - Jar files and then finish like this below?


    Oh! and after that where should I put the jar file?
    The same problem with u. do u resovled it? or someone help us?thanks.

  9. #24
    Account Upgraded | Title Enabled! Aznkidd235 is offline
    MemberRank
    Apr 2007 Join Date
    518Posts

    Re: [Guide] How to compile source

    yeah exactly like that for export settings i use export all output, export java source the options on bottom uncheck compress and check add directory.
    Last edited by Aznkidd235; 08-01-18 at 10:30 AM.

  10. #25
    Account Upgraded | Title Enabled! Elssair is offline
    MemberRank
    Dec 2013 Join Date
    334Posts

    Re: [Guide] How to compile source

    Yeah I've compiled and exported,but is so more hardest to compile and export like on tuto steps, we need to make same structure like old gameserver when export files to .jar, and needs to make a new json lib for compile ai condition folder.

    Greetings,
    Elssair.

  11. #26
    QuoteShiek Member NanayaQ is offline
    MemberRank
    Jul 2012 Join Date
    791Posts

    Re: [Guide] How to compile source

    Didn't dl Eclipse nor IntelliJ IDEA (using vbox), what I did was just use the compiler after editing the .java files then drop the .class file into the original gameserver.jar (ofc I made a backup) using winrar5 to open the .jar file and put the .class file into the right directory and boot up the server. Works for me and now when I made a new character its level 1 instead of level 6 now.
    Last edited by NanayaQ; 08-01-18 at 11:13 AM.

  12. #27
    Valued Member TaxBeauty is offline
    MemberRank
    Sep 2016 Join Date
    105Posts

    Re: [Guide] How to compile source

    Quote Originally Posted by NanayaQ View Post
    Didn't dl Eclipse nor IntelliJ IDEA (using vbox), what I did was just use the compiler after editing the .java files then drop the .class file into the original gameserver.jar (ofc I made a backup) using winrar5 to open the .jar file and put the .class file into the right directory and boot up the server. Works for me and now when I made a new character its level 1 instead of level 6 now.
    Can you remotely help me?
    Last edited by TaxBeauty; 08-01-18 at 12:16 PM.

  13. #28
    Enthusiast mysteriocrude is offline
    MemberRank
    Nov 2009 Join Date
    34Posts

    Re: [Guide] How to compile source

    Quote Originally Posted by NanayaQ View Post
    Didn't dl Eclipse nor IntelliJ IDEA (using vbox), what I did was just use the compiler after editing the .java files then drop the .class file into the original gameserver.jar (ofc I made a backup) using winrar5 to open the .jar file and put the .class file into the right directory and boot up the server. Works for me and now when I made a new character its level 1 instead of level 6 now.
    Thank you so much. Genius. Done the exact same thing and it works.


    Quote Originally Posted by Aznkidd235 View Post
    no other way, you need to do a full compile first to get the .class files you cannot export as .jar without it or you will get an error after the full compile you can compile the file you edited as single compile by simply changing this line:

    Code:
    for /r %%a in (*.java) do ( "C:\Program Files\Java\jdk1.8.0_112\bin\javac" "path_to_file.java" )
    Dude thanks for the full bat and this bat. Now I can compile. *happyface*

  14. #29
    Account Upgraded | Title Enabled! Elssair is offline
    MemberRank
    Dec 2013 Join Date
    334Posts

    Re: [Guide] How to compile source

    @NanayaQ Nice trick!! Runs perfect and faster, so on what java is level start spec?

    Greetings,
    Elssair.

  15. #30
    QuoteShiek Member NanayaQ is offline
    MemberRank
    Jul 2012 Join Date
    791Posts

    Re: [Guide] How to compile source

    Quote Originally Posted by Elssair View Post
    @NanayaQ Nice trick!! Runs perfect and faster, so on what java is level start spec?

    Greetings,
    Elssair.
    Are you talking about making your New Character start at level 1?
    If so then I suggest checking out the dev section:
    http://forum.ragezone.com/f999/java-...98/index2.html



Page 2 of 3 FirstFirst 123 LastLast

Advertisement