The Java Programming Language (Javac.exe, java.exe) source code.
Where can I get the java programming language source code ?
Ernest Keshi
[email protected]
Check the 'Downloads' dropdown menu here at the top navigation bar.
Similar Messages
-
Hello all:
When I am in my file folder on my university of linux account, which contaning all the neccessary files(they are all in default package, which means that they are not in any sub folder of this folder) to run my program, I use the command(xml.jar is a jar file in the folder)
javac -classpath xml.jar Main.java
to compile my project, it says that it cannot file
symbol(the symbol is the name of a class I wrote in the current folder, so I do not why this error occurs?).
But when I was using the command
javac -classpath xml.jar *.java
No error was output, it compile successfully.
However, when I was using the command
java -classpath xml.jar Main < temp.input
It give me the following error message:
Exception in thread "main"
java.lang.NoClassDefFoundError: Main/java
I was so confused about it, because my program runs successful using eclipse. I do not know what is wrong with it? Any advice will helpBut I think it is in linux based system. And when it give me the following error message
y:~/Spring2006/project/MeeshQuest: java -classpath xml.jar;. Main < temp.input
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
/usr/local/bin/.: Permission denied. -
WLS JMS supports the clients developed by using non-java program languages,such
as,c++,VB?
The short answer is yes. This is a frequently asked question. I
suggest searching this newsgroup in google using terms like "C++",
"IIOP", ".NET", "JCOM".
Note also that WL 8.1 (now out in beta) contains a thin java client
(something like 0 or 300K without JMS, 700k with. The 0K client comes
from leveraging WL's IIOP support.)
Tom, BEA
jerry8006 wrote:
> WLS JMS supports the clients developed by using non-java program languages,such
> as,c++,VB?
-
Java Programming Language questions...???
Hi everybody....
Can I post here my questions about Java Programming Language....or only to to the relevant Sun's forum....http://forum.java.sun.com/index.jspa???
My greetings,
SimonSimon,
sure, the worst thing that could happen is that people point you to the SUN forum. Usually this forum answers general Java questions.
Frank -
Java programming language main method question?
Hello everyone I am quite new to the Java programming language and I have a question here concerning my main method. As you can see I am calling 4 others methods with my main method. What does the null mean after I call the method? I really don't understand is significance, what else could go there besides null?
public static void main(String[] args)
int cansPerPack = 6;
System.out.println(cansPerPack);
int cansPerCrate = 4* cansPerPack;
System.out.println(cansPerCrate);
have_fun(null);
user_input(null);
more_java(null);
string_work(null);
}Edited by: phantomswordsmen on Jul 25, 2010 4:29 PMphantomswordsmen wrote:
..As you can see I am calling 4 others methods with my main method. 'Your' main method? Your questions indicate that you did not write the code, who did?
..What does the null mean after I call the method?.. 'null' is being passed as an argument to the method, so there is no 'after the method' about it.
..I really don't understand is significance, what else could go there besides null? That would depend on the method signatures that are not shown in the code snippet posted. This is one of many reasons that I recommend people to post an SSCCE *(<- link).*
BTW - method names like have_fun() do not follow the common nomenclature, and are not good code for a newbie to study. The code should be put to the pointy end of your sword. -
What are the major differences between Java programming language and HTML or XML and why is it better?
Thanks for your response but I am dumb when it comes
to this stuff. I am taking an information systems
class and the professor is asking us to list three
different items that makes Java different from other
programming languages used and I thought posing that
question to this form would provide me the
information I was looking for. The text does not
state the answer he is looking for. Any help would be
great.
ThanksI'd assume your professor is asking you to do something called "research" where you go read stuff about it/them. What you're doing is called "just ask someone to tell some answers to turn in as my own", or in other words, "cheating". -
Java programming language uses call by reference for objects?
Is Java programming language uses call by reference for objects?
Yes. You make calls to an object via itsreference.
No.Yes, you're referring to passing a reference into a
method in which case the value of the
reference is passed.I believe the OP is using the term "call by reference" to mean "pass by reference." The two are interchangable, AFAIK. So, while "making calls to an object via its reference" is correct, I don't believe it's germane to the question. -
How to create an Oracle DATABASE through Java Programming Language.. ?
How to create an Oracle DATABASE through Java Programming Language.. ?
Oracle database administrators tend to be control freaks, especially in financial institutions where security is paramount.
In general, they will supply you with a database, but require you to supply all the DDL scripts to create tables, indexes, views etc.
So a certain amount of manual installation will always be required.
Typically you would supply the SQL scripts, and a detailled installation document too.
regards,
Owen -
Syllabus/Topics for Sun Certified Instructor for Java Programming Language
Hi,
What is the Syllabus/Topics for Sun Certified Instructor for Java Programming Language ?
At the following link
http://www.sun.com/training/catalog/instructor/java.html
detailed syllabus is not there.
I am unable to find the details in Sun site even after search through google.
Please help in this regard.
Thank you for your kind consideration.Sir,
thank you for your response.
technic wrote:
I'm not sure what you mean by Syllabus/Topics?For SCJA/SCJP/SCWCD/SCBCD/SCDJWS/SCMAD/SCEA
I am able to find the detailed syllabus for the exam by clicking on the respective certification link at the following link
http://www.sun.com/training/certification/java/index.xml
for example: for SCJP,
http://www.sun.com/training/certification/java/scjp.xml
http://www.sun.com/training/catalog/courses/CX-310-065.xml
these links are providing exam objectives, number of questions, exam duration , fee details etc.
But for
Sun Certified Instructor for Java Programming Language Course (SL-275)
I am unable to find such details exam objectives (syllabus), no. of questions, exam duration, etc.,
even, the following link
http://www.sun.com/training/certification/objectives/index.xml
is providing details of all other certifications except
Sun Certified Instructor for Java Programming Language Course (SL-275)
thank you for your kind consideration. -
Java Programming Language Answers
Hi,
My business is to teach Java to legacy engineers. I'd like to use a book "Java Programming Language" as one of materials. This book contains number of excellent excercises,but without answers. I found a Web page of answers which is http://java.sun.com/docs/books/javaprog/firstedition/answers/, but this page covers Chapter 1 to 14 and appendix. This book has Chapter 1 through 20. I would gratefully appreciate if someone tell me where answers for Chatpter 15 to Chapterr20.
Thanks and Regards,
Shintaro Sekine
[email protected]It should be no problem if you give them your own answers.
When you couldn't give right answers for a few of them, Mr. jverd et al would
help you on this forum. -
How to run java programs from a master java program?
Hello,
I have several java programs which run from the command prompt. I am seeking help with code for starting java programs from within a java program. For example, a program called master.java works something like this:
import java.*;
create connection pool
create variables and result sets
start/run slave1.java (var1, var2);
start/run slave2.java (var3, var4, var5);
start/run slave3.java (var1, var4);
end of program master.java
Each of the slave.java programs will run for up to an hour. I do not want the master.java program to pause for each slave program to stop. Instead, the master program will keep running and multiple slave programs will be running simultaneously with the master program. When a slave program starts, it is on its own. Also, if possible, I would like to have each of these slave.java programs open in a new separate command window, so I can observe each slave program running in separate windows.
Any suggestions for code or helpful documentation are greatly appreciated.
Thank you,
LoganThank you all.
At the bottom of master.java I have successfully started a batch file with these lines:
String jcmd = "cmd.exe /c start c:/data/simulations/MsgViewCount2.bat";
Process proc = Runtime.getRuntime().exec(jcmd);
But I still cannot get a java program to start. Here is one variation I have tried:
String [] cmdArray = new String[2];
cmdArray[0] = "java";
cmdArray[1] = "slave1";
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec(cmdArray);
This compiles, and no errors occur, but nothing happens.
Regarding this comment:
Why Runtime.exec? Either make the slaves Runnable or
just call their main() methods.
Oh, I see. Sepearate output. :PNone of the slave.java programs have any output.
Thanks again. -
Executing a Java Program from within a Java Program
I need to execute the following Java Program from withing another Java Program. The office toolbar command line is
D:\WINDOWS\system32\java.exe -cp E:\Development\Eclipse\UpdateServer\Classes -server -showversion UpdateServer
I can find no combination of ProcessBuilder commands, including those that include "Cmd.exe /c" that will make this program run from within another Java Program. All the examples I can find only show how to run Windows *.exe programs. I keep getting error 123 from ProcessBuilder.start(), but I can find no documentation for error 123.Assuming your code didn't get mangled by the forum
(it's missing one "), it may be that your "-cp
E:\\Develop.." argument is getting quoted as it has a
space in it; try passing "-cp" and "E:\\Develop..."
as two arguments.That worked; specifically the following tested OK:
ProcessBuilder pb = new ProcessBuilder("D:\\WINDOWS\\System32\\Java.exe", "-cp", "E:\\Development\\Eclipse\\UpdateServer\\Classes\\", "-server", "-showversion", "UpdateServer" );
pb.directory(new File("E:\\Development\\Eclipse\\UpdateServer\\Classes\\"));
try{
Process p = pb.start();
InputStream is = p.getErrorStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line;
while ((line = br.readLine()) != null)
System.out.println(line);
p.waitFor();
}catch(IOException ioe){
I was sure I tried that exact same code before, and it did not work, but now it does, at least at the top level (when it is in main of a test program). I will have to wait to try it until later when it is buried deep in a subroutine. -
How to know the suitable programming language?
Hi,
I want to write a program and I don't know how to pick the suitable programming language for this program. Please, can you guide me on this?
Is there any SOFTWARE that help in choosing the suitable programming language for a specific program?It's pretty much a judgment call:
http://www.awaretek.com/atesterea.html
suggests a programming language based on some criteria which is chosen by some one and produces results which are also one person's opinion. I wouldn't agree with all the results it gives. -
Multiple programming language website(including Java)
I have to design a website for a startup business based out of New York. I actually have yet to be briefed as to the nature of the business but that's besides the point. What I'm trying to figure out is in what areas of the website would it be best to implement Java/Javascript. I know html, css, and will use PHP for database access. Now that the intro is out of the way, here are my questions.
-Can Java access/create databases, namely MySQL?
-The website needs to be graphically well put together, I was actually going to use the sun.com website for a model. Would Java be best for graphics or should I stick to CSS?
-Is it possible to make a workable website(images, databasing, editing) with only a Java applet?
Just for the record, I'm still learning Java, and I'm fairly fluent with html,css, and php.
Any help would be appreciated.Yes, Java can definitely access databases (including MySQL). The keyword here is JDBC.
Avoid Java on the client side for "normal" websites. Just use it to generate classical website formats (HTML, CSS, ...) on the server side.
You probably could produce an entire website inside an Applet, but I'd suggest strongly against it (as you'd lock out anyone who doesn't have/want Java installed on his PC, also there'd probably be accessibility problems). -
Scala, the next programming language
Hello, friends!
I tell you what the main flaw in Java is: it is not functional.
I tell you functional and object oriented programming languages, like Scala, will be the next generation of programming languages.
I tell you what language will substitute Java: Scala (http://www.scala-lang.org/).
Cheers!First, I basically said that yes, it's possbile to use Java APIs in Scala. What I meant by the question is that it would be nice to have the APIs written in Scala (and sure you have some purely Scala APIs) and since you're so eager to promote it, you could do that, not? :-D
Edited by: goddard on May 8, 2008 11:00 AM
Maybe you are looking for
-
How do I set up my 4S phone to chime when a new email arrives? Right now, the chime only sounds after I tap the mail icon. I need an alert to check my mail. Comcast mail. Settings for mail set at "fetch new data". Thank you
-
hi frnds, i am facing a sictuation that i hav to create a report about the excise invoice details. i know th tables t001w j_1iexchdr ekpo ekbe i want to extrat data by using for all entries i want how to extrat the data that means key relations abt t
-
Unstructured user interface template substitution tags
Does anyone know where I can find a full list of substitution tags. An example of the tags I am talking about would be #BODY#
-
Open form 140 from form 133 by a query in B1
Hi @all! I have a problem. When a user has opened form 133 for input and selceted a businesspartner, a query is checking if a QryGroup1 is set. This works fine. When it is set, another query shout open the form 144 (and close form 133?). How can I r
-
I have acrobat 11 and I just installed office 2013 but can't see the ribbon in my office products? I just reloaded Acrobat 11 - still nothing