Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • VS Code environment setup


    ReVity

    Recommended Posts

    Does anyone have link me to a working tutorial, or patience to describe setting up vs code environment? Couldn't find one thats existing, and using eclipse is way harder.

    in eclipse you can do in trough UI, but all threads on forums about linking external library to VS code want me to modificate .classpath files, which i cant even find.

     

    Love ya, future master-of-scripts.

     

    Link to comment
    Share on other sites

    The .classpath is in your folder.

    Example:

    ..\YourProjectName\.classpath

    But generally VSCode ask you if you want to hide these files. If not they should appear in your explorer view.

     

    Use this Plugin to create Java projects:

    Java Dependency Viewer

     

    Or read this tutorial:

    https://blog.usejournal.com/visual-studio-code-for-java-the-ultimate-guide-2019-8de7d2b59902

    Link to comment
    Share on other sites

    Dude, thanks! After 1 hour of trying to figure it out i think ive got it. Can i get your permission to pm you if i get some newb problems that i wont be able to figure out?

    Link to comment
    Share on other sites

    Yea, might be a thing, lucky thing i've got another problem.

    I've set up Java project, but i can't export it to .jar file to test the script. Tried to use maven, as it is advised by most ppl on forums, but when i try to make quickstart (and any other) project archetype i get following error:

    Error: JAVA_HOME not found in your environment.
    Please set the JAVA_HOME variable in your environment to match the
    location of your Java installation.

    Can't figure out how to access JAVA_HOME and progress any further. :/

    Any solution is good, but i'd prefer to work in vanilla java bc of no experience with it, only JavaScript.

    Link to comment
    Share on other sites

    Can you tell me what kit are you using then? I'm open to suggestions, was thinking that vscode is a good idea because working on JavaScript is smooth and the names are similar 😁

     

    Link to comment
    Share on other sites

    19 minutes ago, ReVity said:

    Can you tell me what kit are you using then? I'm open to suggestions, was thinking that vscode is a good idea because working on JavaScript is smooth and the names are similar 😁

     

    The names might be similar but they are pretty far from the same.  If you look into the history of JS it was originally called something else but no one used it because it was garbage.  Java had started for boom so they renamed it in a shitty (but successful) marketing ploy to draw users to thier language. 

     

    I suggest using Eclipse or IntelliJ.  While you can use VSCode it is definitely more focused on web apps.  Unless you have a lot of experience compiling Java applications by hand this can be a bitch vs just compiling with Eclipse / IntelliJ.  NetBeans is also a good option but tends to get more hate because its considered a beginers IDE and not used by any relevant companies. 

     

    If you do decide taking the VSCode route and dont want to fuck with compiling every time you make a change I would consider looking into making a build script. It's a simple couple line shell script you can call to build applications for you.  Basically just write the same commands you would use to normally compile the application then write them on each line of the build.sh file.  Whenever you want to build call build.sh and boom it shits out a jar.

    Link to comment
    Share on other sites

    Okay guys, swapped to IntelliJ. Best choice ever :D

    Feels same as VS code when working with JS, but everything works smooth and all, thank you guys for active help, love ya 😘

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.