-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got Java JDK 7 running, but no dice for Gradle #196
Comments
Would it be possible for you to collect an strace when you run gradle? I can take a look and see if anything jumps out at me. |
Absolutely! Apologies for the length, but here it is: root@localhost:~# strace gradle |
Update: I started fresh with build 14352 (completely removed Bash via the lxrun /uninstall etc, then reinstalled). Right out of the gate, I performed `$ gradle -v Gradle 1.4Gradle build time: Monday, September 9, 2013 8:44:25 PM UTC HOWEVER, trying to actually use gradle in any meaningful way results in it simply hanging. Given that Java is already up to version 1.8.0_92 and Gradle is up to 2.13, I would much prefer to be able to simply install these products from their respective websites, alas, both hang without producing any output whatsoever :-/ |
Gradle hanging is one of my only blockers for using bash on Windows for work, which I would love to do. I get the same thing. Just no output when running gradle. |
Agreed. If they could get the current Oracle build of JDK and the current Gradle working, I could drop Cygwin, PowerShell and my SSH session to another actual Linux box. Is there any word on this, @benhillis? |
I'm not familiar with gradle, could somebody provide me with a repro that demonstrates some broken functionality that I can debug? |
@benhillis Here are the exact steps I followed (pre-supposes that "unzip" has been installed via apt-get). Download the Oracle JDK and Gradle packages: Then, for simplicity: Create the target folders: Extract each of the packages: If desired, verify the extractions: Set defaults: Again, if desired, verify settings: Set environment variables: Verify Java works: Should produce the following:
Then attempt to run Gradle (simply hangs) Expected output should be similar to this, obviously with different versions/OS/etc:
|
Update: I've never actually just let it sit and see what happens, but apparently when I do the following is produced:
The error report file it mentions is viewable here: http://pastebin.com/yDjB7W5H |
On our dev build "gradle -version" is working for me. Are there some other things I can try?
|
Oh, cool. I imagine that'll be making its way to us eventually then :-) Here is the most basic of tests: Create a test folder:
Create a new file named
Then simply run: Expected output should be similar to:
|
When I run the tests I'm seeing the same Internal Error you pasted above. |
Ah, well, I suppose progress in either direction is still progress. Thanks for looking into it :-) My job and my sanity thank you as well. |
Is there any progress on this bug? Seems like there is a repo case now, right? This is still a big blocker for me. |
There doesn't seem to be a fix yet, but as per issue 541 you can use |
Hmm, that still doesn't seem to work for either |
Did you try to install openjdk-7/8/9-jre-zero instead of current JVM? Please try and update results. NB: for Zero JVM, it is not required to use export _JAVA_OPTIONS="-Xint" though please clean it out after apt-get install. |
I would also accourage you to update to Xenium/16.04 (find in issues a receipt to do so) and use OpenJDK 9 as it seems to be most reliable for WSL. |
Well, I did manage to get Xenial installed, but unfortunately openjdk-8-jre-zero still won't install. Simply hangs on this line |
@mphaney - I couldn't install openjdk-8-jre[-zero] on Xenial either. It hangs in ca-certificates the same way as #541, #566 etc, because the hooks call java. What is interesting is that |
@therealkenc - did you uninstall all other versions of Java before installing zero jvm? |
Also, probably if you are installing jre using sudo apt-get instead of sudo su, export _JAVA_OPTIONS="-Xint" and then apt-get you probably are not getting -Xint effective. Try it this way: |
@leninalive I followed your steps so I succeeded in installing openjdk-8-jre-zero. But when I type "java -version" it doesn't respond. Any progress on this issue? It should be a blocking issue for many developers... |
As Java no longer hangs in insider built, this has been fixed and can be closed. To validate, having Java already installed:
|
Gradle seems to work in build 14951. Getting
|
Gradle does appear to be running, however it cannot execute any tests (which I would consider core functionality) due to issues cloning processes. Details as per my comment here Issue 851 |
This issue is being tracked in #851 |
As the title says, I managed to extract the tar file from Oracle for JDK 7 and java seems to run alright, but Gradle (downloadable from Gradle.org) does not work. It is basically just a glorified wrapper and set of tools for Java. I know Java is sketchy on this build anyway (although hearing lots of positive things for the next build!) but I would love for Gradle to be tested along side it! Thanks.
Currently it just hangs (like Java 8 does). Here is the expected vs. current output:
The text was updated successfully, but these errors were encountered: