Hello..how to set classpath....and for environment variables
hello...
i have 2 classes...one.java and Two.java....
In two.java i extends One.java...
Two.java is not compiling....
if I place those 2 files in j2sdk1.4.1/bin folder ..then its compiling successfully.....please help me to solve this..
Perhaps you mean that the java compiler cannot be found in any other directory but the bin directory. You need to add the bin directory to the PATH environmental variable to be able to compile classes anywhere in a command prompt/shell. If you are using windows, you'll find the environmental variables by:
1) right clicking my computer and choosing properties
2) click advanced
3) click environmental variables
Check here for more information about common setup problems:
http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html
Similar Messages
-
How to set classpath and server configuration in eclipse
i am new to eclipse tool pls anyone tell me to set classpath and serverconfiguration (tomcat) and sample program
Get WTP [1], install it [2] and checkout one of the lot Eclipse WTP tutorials [3].
[1] http://www.eclipse.org/webtools/
[2] http://ftp.osuosl.org/pub/eclipse/technology/phoenix/demos/install-wtp/install-wtp.html
[3] http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html -
How to Set a machine level Environment variable in remote machines
Hi,
I have to set a List($ProjectName) as the value of an environment variable($PROJECTS).
The cmdlet which I tried is :
$remoteMachineList = 'machA', 'machB'
$ProjectName = 'ProjA', 'ProjB', 'ProjC'
foreach($remoteMachine in $remoteMachineList){ icm -comp $remoteMachine {
[Environment]::SetEnvironmentVariable("PROJECTS",$ProjectName,"Machine")
This doesn't throw any errors but it's not setting the value of it. If I give a string or an integer value directly instead of the $ProjectName in the above code, it's working fine.
PLease Help, Thanks in advance !You have to do a little more work when supplying outside variables into a PSSession (using Invoke-Command in this case) by using the -ArgumentList parameter and supplying a Param() statement in the scriptblock.
$remoteMachineList = 'machA', 'machB'
$ProjectName = 'ProjA', 'ProjB', 'ProjC'
foreach($remoteMachine in $remoteMachineList){
icm -comp $remoteMachine {
Param ($ProjectName)
[Environment]::SetEnvironmentVariable("PROJECTS",$ProjectName,"Machine")
} -ArgumentList $ProjectName
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI
PowerShell Deep Dives Book -
Setting UI60_ICON and other environment variables
Hi, I am developing using forms 6i. I tried setting the UI60_ICON environment variable from
1. The Control Panel -> System -> Advanced -> Environment Variable -> System Variables and
2. The Registry Editor -> Edit ->New -> String Value
But my icons will still not appear in my forms. Can some one help me.
I do not add the .ico extension when I use the icon name. And I also make sure the icon has been place in the path I have stated. The icon appears when I place them in the FORMS60 environment variable.
I need help.Try to set with Registry Editor
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE (where you see FORM_PATH and other)
variable
UI_ICON instead UI60_icon
Hope helps -
How to set Classpath for MySQL
Hi
I want to connect to my mySQL db with a java program , but I don't know how to install the mySQL connector driver. Can anyone help me? or indicate somewhere where I might find the answer?
And how to set Classpath for MySQL.
my program gives an exception ClassNotFound.
Exception :com.mysql.jdbc.Driver
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at Files.main(Files.java:352)
Plz help me
Thanx
Lalitto make your life easy i tried to connect..
what you have to do is.. you mysql database server should be running
next you have to download one of the version of mysql driver.. i downloaded mysql-connector-java-5.0.5
go to my computer right click - >advance tab -> click on environment variable -> put you path e.g. C:\Program Files\Java\jarFiles\mysql-connector-java-5.0.5\mysql-connector-java-5.0.5-bin.jar
into your classpath in a user variable section..
Try this code
import java.sql.*;
public class MySqlConnect{
public static void main(String [] args){
try{
Class.forName("com.mysql.jdbc.Driver");
String url ="jdbc:mysql://localhost:3306/test";
Connection con =DriverManager.getConnection(url,"root", "password");
System.out.println("Connection: " + con);
}catch(ClassNotFoundException cnfe){
cnfe.printStackTrace();
}catch(SQLException se){
se.printStackTrace();
}have fun
Gurnah -
How to set upper and lower limit for service notification in SPRO
Hello everyone,
Good morning....!!
I am new to SAP PM and to SCN as well.
I have a question on Service notification user status.
I have notification profile configured in SAP as below:
Status no Status Short text Lower limit Upper limit
5 REGD Registered 1 70
10 PCKS Pack sent 1 70
20 APRC Application received 1 70
etc..
I want the statusesto be set as navigation should only allow to go back one by one...like from APRC -->PCKS not to REGD.From PCKS -->REGD etc..not vice versa.
Can enayone explain me to how to set lower and upper limits for these according ot the above requirement.
for more details please check my attachment.
Thanks in advance..!!
Regards,
Sudha.Once you change the status to previous status, just save the order. Then again open the order & try to change the user status.
Just I made replica of your profile. I could able to change (even without saving the order). -
how to set class path for j2me. I downloaded J2ME Wireless tool kit. And set the classpath "set classpath=c:\J2mewtk\lib\midpapi.zip;.;". but i could compile java file. .how to set.
With regards
SanthoshWhen you are downloading j2MEWTK, everything is included within it. You dont require MIDP seperately. When you are runnung the ktoolbar , which is provided with J2mewtk, the preverifier runs and creates the required jad file for you. You dont need a forte to run these.
If you want to download MIDP seperately, that also is possible. Then you have to go for command line arguments. Please refer to Sun's MIDP page for details.
Let me know, if you face any further problem -
Hi All,
How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?
Assume Material is Pen.
While creating Sales Order in VA01 how to bring different price for the same material for Platinum,Gold and Silver Customers.
Kindly help me out.
Thanks,
Renjith JoseA good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
"Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded" -
hi. i bought iphone 5 witch was locked, i made factory reset and now phone asking apple ID and pasword witch i dont know. i was writing to seller but he is not answering me. how to set new account for my iphone 5 what i could use it?
The iPhone has a feature called "Activation Lock" described here:
http://support.apple.com/kb/PH13695
Without that Apple ID, you will not be able to use that iPhone. -
How to set up and configure AirPort Express for AirPlay and iTunes
Saw somewhere that supposedly there were some apple written guidlines on the above topic. I have searched all over for them. Anyone know where I can get a copy to read through. Just trying to educate myself a bit and sety up another room with access to itunes, radio, etc with high quality speakers and amp off my express.
Here you go ...
How to set up and configure AirPort Express for AirPlay and iTunes -
How to enable root on mac on 10.9.2 and how to set the password for the same ?
how to enable root on mac on 10.9.2 and how to set the password for the same ?
http://support.apple.com/kb/ht1528
Follow the steps for Lion.
But, why are you doing this? I've never found the need to do that. -
How to set userlevel permission for GFS and NFS
hi
how to set userlevel permission for GFS and NFS?
regardshi
http://www.redhat.com/docs/manuals/enterprise/
AND
http://en.tldp.org/
probably your best bet.
regards -
Setting classpath and creating packages
Hi
I am new to Java and my questions are basic.
1)I am using the kawa IDE and i dont know how to create and use packages.
2)Creating classpath to compile and run java programs from the Dos prompt.
I would appreciate any help on these questionsI'm not sure how to use KAWA.
When it comes to classpaths, though, I would recommend not setting it as an environment variable - this tends to cause confusion if you work on more than one project at a time on your machine. Either set it locally or specify it directly on the command line.
Often it's a good idea to write a batch file for compiling and executing your code:
setlocal
set PATH=c:\j2sdk-1.3
set CLASSPATH=c:\jars\Servlet.jar
javac MyClass.java
endlocalHope this helps. -
How to set a hover for Accordion content?
Hello,
I'm trying to figure out how to make a vertical side navigation using the accordion feature.
I've got it all working for what I want to do except for a hover on content.
I have it set for hover on the labels so it shows the blue bar and yellow text on hover or open like I want.
What I'd like now is to have a background on each content line when I hover on it (and when selected it stays the background shown on hover).
I've got a background image for the yellow gradient highlight shown below, but can't figure out how to set the Content for hover like I did the Top Level Tab.
I'm attaching a couple of files for demonstration in case the above is not clear.
thanks!
kimUse the css :hover..
http://www.daniweb.com/forums/thread109916.html# -
How to set Shortcut keys for button in Apex
Hi
Could anyone help me on how to set shortcut keys for buttons in Apex.
I need to use say ALT + S to submit the page.
The following thread pertaining to HTML DB refered to use ACCESS key. but that couldnt work in my case.
Re: operation of the app. with the keyboard
Any pointers on achieving this would be helpful.
Thanks
VijayHi Vijay,
I’m afraid you must do it using javascript key listener. You can’t use action() on template based buttons because they are actually not HTML buttons but images with hyperlink.
Key listener checks which key has been pressed down and invoke some JS function. For example, write this code in page header:
<script>
document.onkeydown=keyCheck;
function keyCheck(e){
var KeyId = (window.event) ? event.keyCode : e.keyCode;
switch(KeyId){
case 113:
doSubmit('SAVE');
break;
case 118:
alert('Hello');
break;
</script>
This script will submit page with request 'SAVE' if you press F2 or will show alert message if you press F7. Modify it to your issue.
Regards,
Przemek
Maybe you are looking for
-
Steps to create LOGICAL DATABASE in sap
hi guys, i have gone through many documents about LDB. But, i didnt get the steps to create a LDB. plz provide me with the steps to be followed to create a LDB. thnx, shivaa.
-
MyAccount registration and login support 24/7
If you have trouble registering or logging in to MyAccount, try our Live Chat support team, these guys are there 24/7 and are specialized on these tasks, so they're pretty good at it Consumer Link: http://livechat.telstra.com/TCOM:ContactUsnlineServi
-
Firewall problem in domain environment
I have built two domains for testing purposes. Having deployed domain controllers, exchange servers, sccm/scom servers, sql servers along with some client computers I noticed that I had problems accessing some of servers/clients - I could not manage
-
Get Oracle Spatial Certified at OpenWorld Test Fest
Get Oracle Spatial Certified at Oracle OpenWorld Test Fest Free! for OPN Exchange attendees Will you be attending Oracle OpenWorld in San Francisco on Sep. 30-Oct. 4? If so, you can take advantage of Test Fest during the conference, to earn an Oracle
-
Everytime I open my imac I get an error message that says: "We're sorry but the Safari browser version your are currently using does not support the community toolbar." I can't see where it affects anything else, but getting an error message on an i