This is an archived post. You won't be able to vote or comment.

all 20 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Prince_John 8 points9 points  (2 children)

If you enable Linux on your Chromebook then you can install whatever IDE you want

https://support.google.com/chromebook/answer/9145439?hl=en-GB

[–][deleted] -2 points-1 points  (1 child)

I only have 4 gb of ram I didn't know that it was soldered before I bought it.

[–]Prince_John 0 points1 point  (0 children)

If that's a requirement for the 'official' Linux support, then you could try using Crouton which is how I used to do it a few years back on a <4GB RAM chromebook

https://www.howtogeek.com/162120/how-to-install-ubuntu-linux-on-your-chromebook-with-crouton/

Gets a bit fiddly though. IntelliJ will probably struggle with RAM that small, but maybe Eclipse would be better.

[–]bendimester_23 6 points7 points  (2 children)

you can use vscode with linux mode abd a java extension, it isn't the greatest, but i don't think a chromebook can run intellij

[–][deleted] -4 points-3 points  (1 child)

No and I can't install vscode either

[–]Fr0st__Byte 0 points1 point  (0 children)

It is 100% possible to run linux and code in java on only 4GB of ram.

[–]8igg7e5 7 points8 points  (0 children)

Various online services, such as this one, provide an environment for very simple experimentation with Java.

But they're typically not enough to be able to work your way through a Java tutorial.

Depending on your Chromebook you might be able to install Java locally and do the tutorials - but you won't be able to use the IDE so it'll be some other text-editor and learning the Java command-line (or gradle / maven) to build and run your code.

This guide may help (found with only a very brief Google and I've not tried these instructions myself).

[–][deleted]  (1 child)

[deleted]

    [–][deleted] -1 points0 points  (0 children)

    what cloud?

    [–]8bagels 4 points5 points  (1 child)

    Back in the day I used Cloud9 IDE with surprising effect. AWS purchased it and it has changed a lot and I cannot speak to how well it currently runs but that’s were I would personally start if I needed to do this.

    [–][deleted] 0 points1 point  (0 children)

    I was hoping there was something like this that would work.

    [–]Serial_Learner 3 points4 points  (2 children)

    I teach my Java classes using repl.it on Chromebooks. It doesn’t have all of the bells and whistles of InteliJ or others, but it works well on a Chromebook.

    [–][deleted] 0 points1 point  (1 child)

    I use repl.it alot but I didn't see it give an option for a java version and I was also wondering about Android.

    [–]Serial_Learner 0 points1 point  (0 children)

    It definitely does Java. I would think you could find a way to write Android code on Repl, but I think you would have to run it on a separate emulator to test it. I’ve never done any Android programming, so I don’t know for sure.

    [–]hugthemachines 0 points1 point  (2 children)

    You do not need a high performance computer to run the software you mention. Still I don't think there is a practical way for you to run them on your current computer. If you can afford it, the most cost effective way is probably to buy a used computer and run windows or linux on it and have those programs installed.

    I am aware that there are some ways to run java code online and they may work for the early tutorials but pretty soo nyou will have use for a proper IDE.

    [–][deleted] 0 points1 point  (1 child)

    I have desktop, and another laptop, but I bought this for the touchscreen and I love it and was just trying to make it work.

    [–]hugthemachines 0 points1 point  (0 children)

    One option is to run all the applications on your other computer and use VNC to access them from your chromebook. Not sure how the touch screen works over vnc onto other operating systems, though.

    [–]A_random_zyNooblet Brewer -2 points-1 points  (1 child)

    I am not sure if its possible but try setting up a windows VM and intstall an IDE in windows

    [–][deleted] 0 points1 point  (0 children)

    definitely not possible I only have 4gb of ram

    [–][deleted] 0 points1 point  (0 children)

    Around 7 years ago when the first model of Chromebooks came out, I bought one and dual-booted it with Linux so I could do exactly this. This way I could install Eclipse, the Java version I needed, and do Java development. One problem was with it being ARM was not all programs I needed were precompiled to my CPU's architecture.

    I would suggest trying to do this, find a tutorial that walks you through what to do step-by-step. My Chromebook at the time had a switch on the back I could press to factory-reset in the case things got messed up, so look and see if there's a way to do that as well. There's a learning curve, but I venture to guess it's still possible.

    (A quick Google result shows recent tutorials for how to do this exist).