TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Java is preparing to co-bundling and native binaries

114 点作者 Mitt将近 13 年前

13 条评论

bni将近 13 年前
The Java way has always been: To run this, click on the .bat file or type java -jar myapp.jar. And some people wonder why Java has been such a failure on the desktop.<p>This should have been in Java from the beginning, instead of outsourcing this functionality to third parties (Mainly Windows only installer applications that sucks, and also isnt used that much).<p>That said, I think it is misguided to include a JRE in the bundle. The correct way would be something like OS X Lion has, promt the user if Java is not installed. and then do a more or less automatic install of Java, in the system.
评论 #4125758 未加载
评论 #4125600 未加载
评论 #4125805 未加载
评论 #4125613 未加载
评论 #4125604 未加载
sgt将近 13 年前
Finally - why did this come now, and not 4-5 years ago? I apologize for asking such a question, but it's the first thing that comes to mind. Principally I do like JavaFX, and this approach will work - given that these binary bundles don't end up like 80MB monsters.
评论 #4125640 未加载
malkia将近 13 年前
One thing that makes managing .NET easier compared to Java, is that there is always executable produced (.exe). So the transition between C/C++ to .NET or (vice-versa) is transparent to the user (or a more complicated process launching the executables).<p>With Java, it seems wrapping (at least on Windows) is done only through batch files, which among other thing have terrible Ctrl+C handling (asking for prompt and such).<p>Maybe I'm naive, but if I was to solve this, I would've done it the way many self-extracting tools work - a small .exe with your stuff at the end (or look at the same directory at the wrapped executable, same name, different extension), and run it like this. And then java itself would've be a dll itself, loaded by this process.<p>This way migration between languges/runtimes would be easier if Java is to play some part of it.
评论 #4127329 未加载
wiradikusuma将近 13 年前
Anyone using JavaFX? I remember it came out as a Flash/Flex contender, but didn't make the cut (which is too bad, I kinda like the language). Considering Adobe pushing HTML5, I find it weird Oracle still pushing Java for Rich Internet Applications.
评论 #4127006 未加载
KevinEldon将近 13 年前
I write internal corporate IT systems using Java. This announcement is good news because it should be easier to deploy to servers and a I can guarantee that I know what JRE I'm working with in production. I can now move to Java 7 without having to worry about breaking other systems or adding an extra deployment step for my apps.
评论 #4125971 未加载
评论 #4125883 未加载
voidr将近 13 年前
It's funny that they are not supporting .deb packages, this shows that they still don't get it.
评论 #4125858 未加载
thebluesky将近 13 年前
Interestingly javafx seems to be 70% faster than WebGL: <a href="http://weblogs.java.net/blog/opinali/archive/2011/11/25/javafx-balls-30" rel="nofollow">http://weblogs.java.net/blog/opinali/archive/2011/11/25/java...</a>
评论 #4125760 未加载
评论 #4126665 未加载
X-Istence将近 13 年前
One of the biggest problems Java faces for real adoption amongst tech people is still the perception (and I am not sure it is entirely flawed either) that it is insecure. Yes Flash is just as bad if not worse, but we are stuck with them because they are so ingrained within the Internet. Java never caught on, and I know that when I see a Java application I let out a huge sigh and go download and install Java again.<p>I've gone so far, and so have many of my friends, to remove Java completely and it is not like I am missing out on anything important! I just don't trust Java. I don't trust Flash either, but that is nicely sandboxed in Chrome, sure exploits may exist there, but at least it will be a lot less likely, and Click to Flash helps as well!
评论 #4126056 未加载
评论 #4125793 未加载
评论 #4126047 未加载
评论 #4127382 未加载
评论 #4125833 未加载
Zarkonnen将近 13 年前
This is really, really good news for me. It (hopefully) means that you can now easily provide a download of a Java executable without the user going "oh, I don't like Java" or the computer going "you need to install this whole other thing to try this program".
oconnor0将近 13 年前
This doesn't seem to mention Java just JavaFX. Those aren't the same, and it would be nice if this was going to eventually be supported for Java applications.
评论 #4131383 未加载
sunyc将近 13 年前
does anyone know what size it is now?
评论 #4131645 未加载
CirstoiuRadu将近 13 年前
f@#ing finally?
Mitt将近 13 年前
The posting is about JavaFX, but in reality it will be a general mechanism for JVM apps. Oracle is doing this preparation, so that your JVM apps (Java, Clojure, Scala, etc.) can run under Android and iOS.
评论 #4125558 未加载
评论 #4125551 未加载