473,394 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to Open and Edit Java Files ?

Hey. Naive question, how do you open and edit java files? I use NetBeans IDE 6.01.

Let's say I save a hello world program, I try to double click it, use the open with Netbeans, notepad, anything I could, but I all I get are these weird characters.
Shouldn't it just open, ready to edit with my installed IDE, like C++ files?

I've also installed JDK 6 update 5.

Thanks for reading ! :)
Mar 22 '08 #1
2 2055
Laharl
849 Expert 512MB
If you're trying to edit a .class file, all you'll get is garbage, since those are compiled bytecode (like the machine code your computer uses to do anything) that tells the Java Virtual Machine what to do. If you have a .java file, you can look at the source code and compile that into a .class. .java files can be opened in your text editor of choice, such as Notepad.
Mar 22 '08 #2
chaarmann
785 Expert 512MB
Hey. Naive question, how do you open and edit java files? I use NetBeans IDE 6.01.

Let's say I save a hello world program, I try to double click it, use the open with Netbeans, notepad, anything I could, but I all I get are these weird characters.
Shouldn't it just open, ready to edit with my installed IDE, like C++ files?

I've also installed JDK 6 update 5.

Thanks for reading ! :)
if you want to see the code of a *.class file, you can use a decompiler like FrontEnd Plus and open it there.
Mar 22 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mike James | last post by:
First, the question - I remember reading in a bug report that there's a limit on the number of files you can open in Windows using Sun Java (around 2040 files). Can anyone verify this - or point me...
3
by: Gert Schumann | last post by:
I'm operating on sun OS 5.6 I ping a host every 10 seconds to get knowlegde wheather it is running or not. After about one and a half hour I get this Exception: java.io.IOException: Too many open...
10
by: Roberto Nunnari | last post by:
Hi all. I announce that there's a brand new, free FSM Generator in the Open Source arena: NunniFSMGen - release 1.0-RC1 http://nunnifsmgen.nunnisoft.ch NunniFSMGen is a java tool that...
8
by: Kenneth P | last post by:
Hi, I've had a hd crash (with proper data backup) and I wonder what way would be the best way to set up an old project with all code from a backup hd in a new vs.net2003 environment? TIA ...
2
by: Sin | last post by:
Hello everyone, I'm totally stumped at how little info I can find in MSDN or on the web concerning this. It's almost as if only microsoft personel hold the key to these secrets or something!!! ...
3
by: Peter Kirk | last post by:
Hi there I know there is a lot of "open source" software written in java. But is the language itself "open source"? Is there an open source java compiler (and/or ide) (is eclipse a compiler or...
7
by: Tyrone Showers | last post by:
I have a problem of getting the error "too many files open" and would like to trace my application. However, I have found nothing about how to display the current number of open files. Does...
6
by: Tukeind | last post by:
Hello, I've opened a file (code below) containing file names onto a FileInputStream, and attempting to open each file and place its contents onto a FileOutputStream (or buffer) and need help getting...
4
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I know it's possible to open and edit a word document in hidden mode (without opening word), by edit i mean to replace one text with another. is it possible to do the same with pdf files...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.