This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

kieran pattni

Ranch Hand
+ Follow
since Jan 19, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kieran pattni

i am mature student..is it worth doing computer science degree or to get certifications in different technologies..many job vancies ask for computer science degree or computer related degree.....thanks in advance..
8 years ago
hi..is it pos to have multi menItems with same ActionListener class .. ActionEvent to choose to switch method case..i am copying notepad for mess about...i know switch does not use strings..many thanks

File Menu
"New Ctr+N"
"Open Ctr+O"

eg switch(...)
case: jump to method()...break
case: jump to method()...break
case: jump to method()...break etc
9 years ago
hi..if i a click button to get text from JTextArea and its blank JTextArea ..shouldnt i get null from getText();or NullPointerException...basically what i want to do is if null //do something ...if text in texArea // do something else....using ActionListener which might be wrong Listener to use...thank you
9 years ago
hi ..hope this isnt silly question..what are essential package you should know..what an employer aspects you to know...i know lang is essential..i am talking on the whole..
9 years ago
hi all...how do you stop say text being highlighted from textArea and copied somewhere else...i am doing spelling game..where the word dispears after three seconds and you have to type the word in another textArea..thank you
9 years ago
thank you...not sure if it is mistake in the book but its working now..thanks
9 years ago
hi all..copied the head first code examples rmi but get this error ..can anyone help..single on home desktop computer on loop back...


java.net.MalformedURLException: invalid URL String: Remote Hello
at java.rmi.Naming.parseURL(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at MyRemoteImp1.main(MyRemoteImp1.java:44)
Caused by: java.net.URISyntaxException: Illegal character in path at index 6: Remote Hello
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at java.rmi.Naming.intParseURL(Unknown Source)
... 3 more

import java.rmi.*;
public interface MyRemote extends Remote
{
public String sayHello() throws RemoteException;
}
import java.rmi.*;
import java.rmi.server.*;

public class MyRemoteImp1 extends UnicastRemoteObject implements MyRemote
{
public String sayHello()
{
return "Server says, 'Hey'";
}
public MyRemoteImp1() throws RemoteException
{

}

public static void main(String[]args)
{
try
{
MyRemote service = new MyRemoteImp1();
Naming.rebind("Remote Hello",service);
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
}
import java.rmi.*;
public class MyRemoteClient
{
public static void main(String[]args)
{
new MyRemoteClient().go();
}
public void go()
{
try
{
MyRemote service = (MyRemote)Naming.lookup("rmi://127.0.0.1/Remote Hello");
String s =service.sayHello();
System.out.println(s);
}
catch(Exception ex){ex.printStackTrace();}


}
}
thank you
9 years ago
hi...steps for making and deploying a java web start app..working through headfirst book...add a mime type to your web server...i dont know nothing about web servers..which server do i use..or software so i can use my computer as web server..sorry if this is stupid question...thank you..
9 years ago
hi again..i dont have a clue how to find the web server from which JNLP application will be distributed for my computer..this is all new to me..
9 years ago
hi..working from Head First book..i am lost with adding mime type to server..dont get it..i have windows vista..Internet Explorer..where to put mime type ..please can you give example..thank you
9 years ago
thank you all...problem was at command prompt...sorted it..
9 years ago
hi..sorry english is bad..early morning
window message i get

C:\Users\kieran7110>javac hello.java
javac: file not found: hello.java
Usage: javac <options> <source files>
use -help for a list of possible options

C:\Users\kieran7110>javac -version
javac 1.6.0_07

C:\Users\kieran7110>java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
9 years ago
hi...while doing javac hello.java at command line get message cant find file..it is in jdk bin directory..i know its not its not good practise..i just thing working first..also how do create my own folder to store files without putting in the jdk bin..at command prompt i have
C:Users\kieran7110>javac hello.java ...thank you
9 years ago
thank you very much it works...got one problem sorted now have another ..i cant save java file in bin directory..i get 'You dont have permission to save in this location contact the adminstrator to obtain permission'..
9 years ago
hi..having problem installing jdk in windows vista..yes i have been sun.com site and instructions but still not happening..yes i have try adding at end path...

CLASSPATH

.;C:\Program Files\Java\jre1.6.0_05\lib\ext\QTJava.zip

Path

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\QuickTime\QTSystem\C:\Program Files\Java\jdk1.6.0_04\bin

when i type javac at command prompt.. i get 'javac' not recognized internal or external ...etc..

thanks
9 years ago