Access to Tomcat server has not been authorized

For the first time, when I try to deploy a project using Netbeans, i got this message,   Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the “manager” role in the Tomcat customizer in the Server Manager. See the server log for details. After I googling, [...]

Sendkey method in Java

sendkey, replace enter key with tab key

Get MAC Address with java

import java.io.*; import java.net.*; import java.util.*; import java.util.regex.*; public class GetMac { public static void main(String[] args) throws IOException { String address = new GetMac().getMacAddress(); System.out.println(address); } public String getMacAddress() throws IOException { String macAddress = null; String command = “ipconfig /all”; Process pid = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(pid.getInputStream())); while (true) [...]

java.lang.UnsupportedClassVersionError

I have face error in running a compiled java class file. Exception in thread “main” java.lang.UnsupportedClassVersionError: <class name> (Unsupported major.minor version 50.0) This error is caused when you compile a .java file with one version of JDK and running the .class file with a different version of JVM (the version of JDK is newer than [...]

‘javac’ is not recognized as an internal or external command

1. Go to http://java.sun.com and download the latest Version of Java SDK or any Jave SDK that your requirement and install on your system. 2. Accept all of the defaults and suggestions, but make sure that the location where Java will be installed is at the top level of your C: drive. Click on “Finish.” [...]

Follow

Get every new post delivered to your Inbox.