Java Programming

Where is the java directory?

345

Top Answer
User Avatar
Wiki User
Answered
2012-06-16 16:15:53
2012-06-16 16:15:53

Nowhere, Just Windows-r and type "JAVA"

001
๐ŸŽƒ
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Related Questions


download java 7 it works by downloading the updated version of java directory


collection of files and directory


save it into a .java file. then open command prompt and navigate to your java bin directory. then type CD then your java bin directory. then type this . javac ProgName.java


JNDI stands for Java Naming and Directory Interface JNDI is an API specified in Java technology that provides naming and directory functionality to applications written in the Java programming language


You can search any blogs directory (e.g. technorati) for blogs in a certain area, in this case about Java.


When you install Java, you get the Java compiler: javac. To compile a Java source file you can run: javac MyClass.java On Terminal Mac I write: cd Desktop javac myClass.java cd = change directory followed by the directory of the java file (I have chosen the Desktop) push enter. write javac (Java Compile) followed by the java files name and extension and push enter (this will create a .class file to the Desktop).


Add the JDK bin directory to your path, then:javac yourfile.javajava yourfile


The acronym 'JNDI' stands for Java Naming and Directory Interface. What this refers to is the naming system for Java, a computer programming language.


You must have a java runtime environment (JRE) installed to run a jar file .. if it is not a jar ( or it is a class ), you should have the java development kit or JDK .. if the file you are running is a jar file, just double click it. if the file you are running is a class file ex. "MainProg.class" then go to the bin directory, and open command prompt and change to that directory. then java MainProg.class it should run ..


You need to set The CLASSPATH variable which is an argument set on the command-line that tells the Java Virtual Machine where to look for user-defined classes and packages in Java programs. Syntax is java -classpath "path to the packages". Set the PATH variable if you want to be able to conveniently run the Java 2 SDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. To set the PATH permanently, add the full path of the j2sdk1.4.2_version\bin directory to the PATH variable. -sravyaa


Compiling Java ProgramsThe javac command is used to invoke Java's compiler and compile a Java source file.A typical invocation of the javac command would look like below:javac [options] [source files]Both the [options] and the [source files] are optional parts of the command, and both allow multiple entries. The following are both legal javac commands:javac -helpjavac ClassName.java OneMoreClassName.javaThe first invocation doesn't compile any files, but prints a summary of valid options. The second invocation passes the compiler two .java files to compile (ClassName.java and OneMoreClassName.java). Whenever you specify multiple options and/or files they should be separated by spaces.This command would create the .class files that would be require to run the java progam.Compiling with -dBy default, the compiler puts a .class file in the same directory as the .java source file. This is fine for very small projects, but once you're working on a project of any size at all, you'll want to keep your .java files separated from your .class files. The -d option lets you tell the compiler in which directory to put the .class files it generates (d is for destination).Lets take a look at two example commands:javac -d classes source/MyTestClass.javajavac -d ../classes com/scjp/test/MyTestClass.javaExample 1 - Compile file named "MyTestClass.java" that is present inside the "source" sub-directory of the current directory and put the .class file in the "classes" sub-directory of the current directoryExample 2 - Compile the file named "MyTestClass.java" that is present in the following directory hierarchy "com/scjp/test/" from the current directory and put the .class file in the folder "classes" that is present one level above the current directoryOne thing you must know about the -d option is that if the destination directory you specify doesn't exist, you'll get a compiler error. If, in the previous example, the classes directory did NOT exist, the compiler would say something like:java:5: error while writing MyTestClass: classes/ MyTestClass.class (No such file or directory)


copy path from directory where ur java is installed.e.g.c:/program files/java/jdk_1.0.6/bin then open my computers properties-advanced-environment variables-find system variable named as path.edit it.now in value field find the last semicolon;.onwards delete all characters n paste copied path.after bin give backslash n semicolon.save d changes.thats it. -Manoj.


Naming and directory services play a vital role in intranets and the Internet by providing network-wide sharing of a variety of information about users, machines, networks, services, and applications. JNDI is an API specified in Java technology that provides naming and directory functionality to applications written in the Java programming language. It is designed especially for the Java platform using Java's object model. Using JNDI, applications based on Java technology can store and retrieve named Java objects of any type. In addition, JNDI provides methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes. JNDI is also defined independent of any specific naming or directory service implementation. It enables applications to access different, possibly multiple, naming and directory services using a common API. Different naming and directory service providers can be plugged in seamlessly behind this common API. This enables Java technology-based applications to take advantage of information in a variety of existing naming and directory services, such as LDAP, NDS, DNS, and NIS(YP), as well as enabling the applications to coexist with legacy software and systems. Using JNDI as a tool, you can build new powerful and portable applications that not only take advantage of Java's object model but are also well-integrated with the environment in which they are deployed.


using javac command and mentioning fully classified class name. Fully classified here means class name along with the package hierarchy in which the class is stored in .java file


Java is aobject oriented language. So, it is better for you to become familiar with object orineted concepts.. then you will be Abe to underestand the java commands. I suggest you become familiar with JDK which includes java classess that are necessary to program with java.. afterward, it is better to write your first program in notepad and then compile and execute it with javac and java from .../jdk/bin/javac test.java and then .../jdk/bin/java test.class check that your test.java file be in the same directory of java and javac. Then, you can program in Jbuilder9 or JbuilderX which is very convenient for java programming.. My email is omid_roozmand@yahoo.com. please feel free to contact me if you have any problem in java...


Yes and no. If you download and install the Java ME JDK, you will be given the option to install the source files for all Java classes in ME. This means that you can view the source by navigating to the directory you installed it to.However, you should not directly edit the classes found in the source directory, since the changes will not be reflected on any other machines. What you should do is make a subclass of whichever classes you want to edit and make changes from there. This will ensure that your code will always work.


To change the current directory to /etc/java/bin, use the command "cd /etc/java/bin".To add the above path to the PATH variable, type export PATH="$PATH:/etc/java/bin".To check whether you have successfully added that PATH, type "echo $PATH".To permanently add /etc/java/bin to PATH variable, edit /etc/profile or ~/.bashrc file and add the command, export PATH="$PATH:/etc/java/bin". (NOTE: After adding, you will need to reboot the machine or type "source /etc/profile" or "source ~/.bashrc".


Current directory/Sub-directory **************************************** The current directory is simply the directory a user is currently in - for instance: when in the Home directory, or the Music directory, and so on. A sub directory is another directory inside a main directory - for instance: in the Music Directory - Jazz, Elkie Brooks, Classical, are examples of three sub directories.


A directory within an existing directory is called a sub directory.


basically packages are a collection or a directory of similar classes. there are some inbuilt packages in java which prove to be really useful like the java.lang package which automatically is imported into your program. in addition you can also create your own packages and its really simple to create them! :)



The root directory is the home directory of the super user i.e root which is /root A home directory for any user the the default directory for the user which is under /home For a user say test the home directory would be /home/test A working directory is any directory that user is working in.


searching in a web directory is like searching in a telephone directory


"Java" refers to both a language and a platform. The runtime and libraries that comprise the platform are based on the Java language and come in 3 flavors: Java SE (Standard Edition): Formerly J2SE but renamed to Java Standard Edition when the Java 2 convention was dropped with the release of Java 5 (formerly J2SE 1.5). It contains a good all-around mix of general purpose libraries including JDBC (Java Database Connectivity), JNDI (Java Naming Directory Interface), RMI (Remove Method Invocation), AWT, and Swing. Java EE (Enterprise Edition): Formerly J2EE (see above). It includes Java Standard Edition plus most of the other Java technologies including JavaMail, Activation, JAXB (Java API for XML Binding), Servlets, JSF (Java Server Faces), JMS (Java Messaging Service), EJB (Enterprise Java Beans), and others. Most of the APIs are very component-oriented and are intended to provide pluggable interfaces for business components to form robust, distributed internet applications. Java ME (Micro Edition): Formerly J2ME. It includes most of Java SE and some additional APIs for handheld devices. Java Enterprise Edition is based on Java, but includes a larger set of libraries than Java Standard Edition, which to most people is synonymous with the word "Java." Note that many of the technologies featured in Java Enterprise Edition are available separately and can be added to the Java Standard Edition platform as needed. Hi! Java is a language and j2ee is a plateform which implements java language. Java can be divided into 3 categories1.core java2.advanced java3.J2EEcore java and advanced java are the standard editions of java where as J2EE is the enterprise editionwitout completing core and advanced java u will not be able to understand J2EE


Assuming the directory is in your Home directory use: rmdir directory-name This will fail if there are files within the directory. In this case, use rm -r directory-name.



Copyright ยฉ 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.