Active10 years, 4 months ago
Why is Oracle Java available only for Mac OS X 10.7.3 and above? The Java Runtime depends on the availability of an Application programming interface (API). Some of the API were added in Mac OS X 10.7.3. Apple has no plans to make those API available on older versions of the Mac OS.
- Java Runtime Environment for Mac 2018 full offline installer setup for Mac Java Runtime Environment for Mac (JRE for Mac) allows you to play online games, chat with people around the world, calculate your mortgage interest, and view images in 3D, just to name a few.
- Java Access Bridge is a technology that exposes the Java Accessibility API in a Microsoft Windows DLL, enabling Java applications and applets that implement the Java Accessibility API to be visible to assistive technologies on Microsoft Windows systems.
I have Java desktop application that works with CSV files. And i want add some functionality. At this moment i need to open selected file with default system text editor. When i run my program on Windows i have no problems, just by calling notepad.exe, but what to do with *nix systems?One way of solution is to customly set the way to preffered text editor in program options, but it is not a best solution..
But maybe it would be better add to program own text editor, even with less functionality ?
Mnementh31.9k4040 gold badges132132 silver badges195195 bronze badges
OleksandrOleksandr
2,12766 gold badges3939 silver badges7676 bronze badges
3 Answers
I believe
Michael BorgwardtMichael Borgwardtjava.awt.Desktop.edit()
may be what you're looking for, although it will launch whatever the OS thinks the file should be edited with, which in the case of CSV is usually a spreadsheet app rather than a text editor - maybe you can rename the files to TXT temporarily or permanently.304k6767 gold badges439439 silver badges674674 bronze badges
For such functionality, I believe that is much better to use JTextArea and provide your own basic text editor.
Anyway, have a look at the BareBonesBrowserLauncher. It is a Java class that allows you to launch the default browser in any platform. You can adapt it for your needs. Copied from there:
kgiannakakiskgiannakakis90k2323 gold badges148148 silver badges188188 bronze badges
Try this:
If the application is for Mac please remember to change the library from default Mac OS 10.5 (JVM 1.5) to JVM 1.6 otherwise java.awt.Desktop would not be resolved.
How to fix text highlighter in powerpoint for mac. This does not open text editor though, as Michael Borgwardt, mentioned. It opens MS Excel in my case.
For any more info you can look in java api:
ArturArtur2,69422 gold badges2424 silver badges3434 bronze badges
Not the answer you're looking for? Browse other questions tagged javatexteditor or ask your own question.
Oracle's Java Runtime Environment (JRE) for 64-bit Windows PCs contains the Java Virtual Machine, software libraries, components, and plug-ins that tons of programs, media, and Web sites need to display advanced multimedia content and animation. Version 7 Update 55 of Java's Standard Edition addresses 37 security vulnerabilities while reducing the frequency of security notifications in certain installations.
Pros:
Answers the 64-bit question: Running 32-bit Java on 64-bit Windows involves compromises, such as Update issues. This version of Java is designed specifically for 64-bit Windows.
Plug-ins: The Java plug-in is critical to many Web applications, while Java Web Start deploys standalone apps over networks.
JavaFX: JRE now includes Java FX version 2.2.55.
Cons:
Security: Some computer experts warn of vulnerabilities in Java that updates have failed to correct.
8 is enough? Java SE 8 is a major update that was released prior to version 7.55's release, though a major security update to version 8 has also been released. Confused? We don't blame you, but Java always bears watching, so check on your system's needs before upgrading.
Best Text Editor For Mac
Bottom Line:
Free Text Editor For Mac
If you're running 64-bit Windows, check your Java version and update it if necessary to JRE SE 7.55 for security and stability.