New to Java cant get it to compile in msDOS
Using SDK java 2 version 1.4.0. Checked my personal Computer folder types.
In folders in windows 98 do java file types open with javac.exe or java.exe? Tried both. When I try to compile a simple tutorial HelloWorldApp.java , it gives me a message that javac cant read it. The path is OK on MS DOS since it recognizes the javac command. I should be having no problems with tutorial. Did I mess up the links to the class and java file types ?. Microsoft tech support fixed a problem when I opened some demo files into the wrong programs and it was permanent.Then I tried to reset the right exe files to go with the file types but I am not sure. I have tried re downloading the software several times. Should I buy a sun software or are these downloads bad?
use javac to compile java programs.
e.g.
javac HelloWorld.java
use java to run compiled code (class files)
java HelloWorld
(Don't include the extension .class when using the java command)
Similar Messages
-
New to Java - cannot get computer to compile?
Hi
I'm from UK, although I've used one for ages I am new to computing itself and very new to programming - in fact I haven't started yet because I cannot get my JDK to work!! I have downloaded it successfully, it is installed and I have verified the version from athe command prompt. I have written a programme as detailed in my Programming with Java book, and saved it with a java file extension and I am sure it is correct. But when I try to compile mit I get "'javac' is not recognised as an internal or external command, operable program or batch file"
My book has no further advice on what to do - can anyone on this site offer me any help please.
ThanksMake sure the path to the javac.exe is specified in the environment CLASSPATH, otherwise you'll have to instruct your command window to point to the java/bin directory every time you wish to compile something... Not fun... :P
After that, just follow the instructions pointed at the tutorial...
Check out the installation doc at http://java.sun.com/j2se/1.5.0/install-windows.html , specifically, the heading: 5. Update the PATH variable (Optional)
If you're new to java, I recommend getting an IDE to simplify things: www.jcreator.com is nice and free, try it out... ;) -
I am trying to creat a simple program with the JOptionPane. I cant get it to compile, so if any can help me I would apperciate it. Thanks!
import javax.swing.*;
public class myPane {
public static void main(String[] args) {
getPass(args);
private static void getPass(String[] args) {
String s,v,d;
s = (String)JOptionPane.showInputDialog(null, "Username", "Java command line", JOptionPane.PLAIN_MESSAGE, null, null, "");
if((s != null) && (s.length() > 0)) {
v = (String)JOptionPane.showInputDialog(null, "Password", "Java command line", JOptionPane.PLAIN_MESSAGE, null, null, "");
if((v != null) && (v.length() > 0)) {
JOptionPane.showMessageDialog(null, "Thank You!", "Java command line");
d = (String)JOptionPane.showInputDialog(null, "Which command line would you like to run", "Java command line", JOptionPane.PLAIN_MESSAGE, null, null, "");
if((d != null) && (d.length() > 0)) {
JOptionPane.showMessageDialog(null, "Executing", "Java command line"); System.exit(0);
else {
JOptionPane.showMessageDialog(null, "You must enter a command");
getPass(args);
else {
JOptionPane.showMessageDialog(null, "Please enter a password");
getPass(args);
else {
JOptionPane.showMessageDialog(null, "Please enter a username");
getPass(args);
You have two invalid statements:
JOptionPane.showMessageDialog(null, "Thank You!", "Java command line");
JOptionPane.showMessageDialog(null, "Executing", "Java command line");The arguments are not acceptable - see the API documentation. -
Just bought a new IMAC. Cant get the iPhoto to open even after apparently loading the library upgraded. Ideas?
Did you install and RUN the iPhoto Library Upgrader on your library?
OT -
I am running OS 10.4.11 and just purchased a new IPOD and I cant get it to sync. I do I do this?
Syncing with iTunes on a Mac or PC requires:
Mac: OS X v10.6.8 or later (requires a Mac with an Intel processor)
PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
iTunes 10.7 or later
Cheers, Tom -
Got New computer and cant get itunes onto new computer
Ok Smarties, let's see what you've got.
I Have a little dilemma. Ok BIG dilemma. I cant get my old iTunes onto my new computer because my old computer was bashed in by my ex-best friend. I can't afford to fix it so I decided to get a new one!
My little brother always messes things up and already got HIS iPod on MY new computer. Along with HIS music. I'm just wondering if and/or how to get my old iTunes onto my new computer. I will be very grateful to whoever helps me.
Please e-mail me at [email protected]
-Trojanman296
A.K.A. Josh
Message was edited by: Trojanman296Try the following user tip:
Recover your iTunes library from your iPod or iOS device -
New to wireless Cant get airport express to join airport extreme network
So... I just got this MBP yesterday along with airport extreme and airport express. I got the base station set up i just cant get the express to connect for the life of me... help anybody? Everything is in range i know that for a fact. I just cant get it configured and i already looked on the airport express support page and followed the instructions and i still can't get it. :-/
Factory reset your Airport Express (AX).
Resetting AirPort Express
http://docs.info.apple.com/article.html?artnum=108044
Connect to the Airport Extreme Network
Use the Airport Assistant to configure a new base station and configure the AX to join an existing wireless network (either use client mode, only extend your network if you need to do so).
iFelix -
New 5s and cant get it to discover or be discovered via bluetooth
Just upgraded to the 5s and i cant get it to discover or be discovered via bluetooth. My iPad wont even find it!!! Any help would be appreciated
Hi
You can't use Bluetooth to pair iOS devices with other iOS devices or Computers (Macs or PCs) as it's not part of the OS.
You can connect iOS devices to some bluetooth enabled cars, speakers, keyboards etc. Apple provide a list for supported bluetooth profiles here:
http://support.apple.com/kb/ht3647
HTH?
Tony -
I am new customer but cant get logged into my account even with my password
cant access my account even with my login details and password my service just started today my internet is fine as is my phone just cant get logged into my account
Hi ,
Thanks for joining the Community.
If your service has just started you may need to allow 24-48 before logging in to your online account.
Thanks
James -
New to IOS cant get it to function correctly on BMW F30
Hoping somone can suggest a fix. Have made a partial move to Apple as spotify integration on Android is pants with BMW vehicles. However at same time whiel I can get my Iphone 4 to conenct to the car and load spotiy once playing I cant see any track info progress. All I can do is load a playlist. Cant skip tracks or anything.
Any suggestions how I can fix this. Plan was to use the iphone off line and just sync back when in WIFI range of the house. Rather not use mobile data. This certainly was not an issue when I first tried it when I buying the car back in Novemberuse javac to compile java programs.
e.g.
javac HelloWorld.java
use java to run compiled code (class files)
java HelloWorld
(Don't include the extension .class when using the java command) -
I have just bought a new shuffle and cant get it to syn
I have just bought a new ipod shufle and cant find the sync button. The problem is that i have an old shuffle already registered. I have downloaded the latest itunes on my laptop but cant see my new ipod listed anywhere, can anyone help please?
The problem is that i have an old shuffle already registered.
That's not a problem. You can connect multiple iPods to your computer at the same time, and each one appears separately in iTunes.
If this is the first time you are using iTunes 11.x, the sidebar (along left side of window) may not be visible. If so, from the menu bar, under View, select Show Sidebar.
Make sure you are using the USB cable that came with the shuffle, if your old shuffle is a different type (2nd gen). When connected, it should appear in the sidebar, under DEVICES. If you connect both shuffles at the same time, they should both appear under DEVICES.
If that does not happen, please post back. -
With the new firefgox I cant get any of the "movies" I just get a green screen.
When I click on a news story that has a video I get a green screen in the area where the picture should be. Everything else is fine.
You can check for problems with current Flash plugin versions and try these:
*disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
*disable protected mode in Flash 11.3 and later
*disable hardware acceleration in the Flash plugin
*http://kb.mozillazine.org/Flash#Troubleshooting -
Cant get my imported compilation to group in itunes
My wedding album was put together by a friend, its almost 4 hours long, he put it together as a playlist then burnt that to cd's using itunes. When i import those cds to my itunes the only way i can get the songs to play in tcorrect order is when importing i copy the track list to a playlist. after import when in my Music folder all the tracks are split up, iv tried going through my music folder > selecting each individual track then > get info > and changing the album and selecting part of a compilaton and all the other online suggestions but still i tunes splits everything up..... headache!
any info would be greatly appreciated. thanks lotsWhen you say you have tried "all the other online suggestions" that is rather vague because my online suggestions may not be the same as somebody else's and I presume you have not tried all x-thousand pages of Internet search results. What have you tried?
Steve MacGuire aka turingtest2 - iTunes & iPod Hints & Tips - Grouping Tracks Into Albums - http://www.samsoft.org.uk/iTunes/grouping.asp (older post on Apple Discussions http://discussions.apple.com/message/9910895)
Quick answer: Select all the tracks on the album, File > get info, and either give them all a single "album artist", or check the "compilation" flag (as in https://discussions.apple.com/message/17670085).
If these are from multiple-CD sets you may also need to enter the appropriate information in the disc number fields. If they are not a multiple CD set you still need to make sure the disc number fields are set correctly or all empty. -
Just purchased my imac and uploaded the new free lion update...loaded up logic studio...and i can`t open it ?
Your Welcome...
There is no capacity within the Link for Registering... Well not to my knowledge anyway...
It is purely an Update...
I would Register First if you can...
If not do the Update and then Register...
Being New to Mac, here are some Links to help you forget the Windows way of doing things...
Enjoy...
Mac 101
http://www.apple.com/support/mac101/
http://www.apple.com/support/switch101/ Switching from PC -
Ok, very new , but still cant get it to work .
hi, everyone, i have an older wvc54gc ver.1-1 that i bought on ebay, did NOT come with the CD, but found on this forum, what todo with missing CD, here was the link
http://homecommunity.cisco.com/t5/Cameras/Missing-setup-CD-ROM-for-WVC54GC/td-p/298310but
this is my question, my main comouter at home has Vista on it, my remote computer has XP on it, i have a dlink router, i had the cam working for a minute on my remote computer, and when i had to reboot, i lost everything,... the cam was plugged into the remote cam , unplug and nothing works, any great suggestions for this,
i would just like to get this cam set up at home, and when i am away i can see whats going on..
any first steps again ?
i saw a few programs out there for monthly cost, but still like the linksys cam for free..
will this linksys cam work on Vista ?
anyone have a link to download the software ?
tried the cisco site and they said the firmware will not work cause the cam is out of waranty.
help..
thanks for your support.
alexYou should be able to do a google search to find the latest firmware for that camera. Looks like it is Version 1 (and they are up to Version 3 now).
I would start by updating the firmware.
Did you set your camera to have a static IP address? I struggled A LOT with this as I am not a network type guy, but what I found most helpful was to set a static IP address on the camera (and set one outside the normal range) (I used 192.162.1.67). Rebooting routers, etc, caused all of your DHCP ip addresses to renew and change, and I *think* that I was ending up with IP address conflict of some sort.
A real network expert might be able to help more.
Maybe you are looking for
-
I have an old Powerbook and G5 tower that both have the old Power PC chips running Leopard. I got the new iPhone 4S today and am unable to sync. Any way to solve?
-
Mac Mini Shippment to Pakistan?
Hello, I apologize if I posted this topic in the wrong section. I'm from Pakistan and I'm interested in purchasing Mac Mini from Apple Store. My question is whether apple do shipments to Pakistan or not? I can't find any distributer in Pakistan. I wo
-
Default iCloud vs alias email address from 3GS
Can someone please tell me if there is a way of setting one of my iCloud alias email addresses as the default address for sending email from my iPhone 3GS? At present I have iCloud set up and it sends mail from the 'main' address ([email protected])
-
Installing Oracle Forms Reports 1112 throws OutOfMemoryException: PermSpace
Installing Oracle Forms Reports 11.1.2 on Windows 2008 64bit throes OutOfMemoryException: PermSpace when running the ASInstance configuration. I tried to configure the JAVA_OPTIONS variable to increase the MaxPermSize parameter but is not working. Re
-
Help! My flashdrive had decied not to open and I'm getting a s.m.a.r.t. status not supported note when i'm trying to open it. What does this mean??? Is all my data lost???