Press enter to see results or esc to cancel.

How to connect to remote MySql database from NetBeans

This tutorial shows java program to connect to remote MySql Database from NetBeans IDE. Include the MySql jar in classpath of the project. You can download MySql jar here. Update your Database information in the program. DB_Connection.java package DB_Connection; import java.sql.Connection; import java.sql.DriverManager; public class DB_Connection { public static void main(String[] args) { DB_Connection obj_DB_Connection=new …

Continue reading

JSF Error Failed to parse the expression [#{navController.go_to_index()}]

JSF Page load Error javax.faces.view.facelets.TagAttributeException: /tab.xhtml @12,84 action=”#{navController.go_to_index()}” Failed to parse the expression [#{navController.go_to_index()}] An error comes on running code as shown below. <html xmlns=”http://www.w3.org/1999/xhtml” xmlns:h=”http://xmlns.jcp.org/jsf/html”> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:form> <h:commandButton value=”Index” action=”#{navController.go_to_index()}”></h:commandButton> <h:commandButton value=”About Us” action=”#{navController.go_to_about()}”></h:commandButton> <h:commandButton value=”Contact Us” action=”#{navController.go_to_contact()}”></h:commandButton> </h:form> </h:body> </html> Solution. Remove the Braces () of the call function. …

Continue reading

Unable to create managed bean x. The following problems were found: – Property x for managed bean message does not exist. Check that appropriate getter and/or setter methods exist.

Error Message. Unable to create managed bean message. The following problems were found: – Property helloWorld for managed bean message does not exist. Check that appropriate getter and/or setter methods exist. This message comes in JSF when you are Injecting JSF bean to another Bean using @ManagedProperty. Taking below Example of Injecting HelloWorld.java to Message.java …

Continue reading

JSF Helloworld Netbeans IDE – JSF Tutorial Part 1

Download the project shown in Youtube here. JSFHelloWorld1 This tutorial shows step by step process how to Start with Java Server Faces. JSF Helloworld program with Netbeans IDE. First install NetBeans IDE in your windows PC. Visit this post to see how to install NetBeans IDE.¬†http://chillyfacts.com/how-to-install-netbeans-ide-in-windows-pc/ After Installation go on to File > New Project. …

Continue reading

Download javax.json-1.0.jar

Download javax.json-1.0.jar javax.json-1.0.jar META-INF/MANIFEST.MF META-INF/maven/org.glassfish/javax.json/pom.properties META-INF/maven/org.glassfish/javax.json/pom.xml javax.json.Json.class javax.json.JsonArray.class javax.json.JsonArrayBuilder.class javax.json.JsonBuilderFactory.class javax.json.JsonException.class javax.json.JsonNumber.class javax.json.JsonObject.class javax.json.JsonObjectBuilder.class javax.json.JsonReader.class javax.json.JsonReaderFactory.class javax.json.JsonString.class javax.json.JsonStructure.class javax.json.JsonValue.class javax.json.JsonWriter.class javax.json.JsonWriterFactory.class javax.json.spi.JsonProvider.class javax.json.stream.JsonGenerationException.class javax.json.stream.JsonGenerator.class javax.json.stream.JsonGeneratorFactory.class javax.json.stream.JsonLocation.class javax.json.stream.JsonParser.class javax.json.stream.JsonParserFactory.class javax.json.stream.JsonParsingException.class org.glassfish.json.JsonArrayBuilderImpl.class org.glassfish.json.JsonBuilderFactoryImpl.class org.glassfish.json.JsonGeneratorFactoryImpl.class org.glassfish.json.JsonGeneratorImpl.class org.glassfish.json.JsonLocationImpl.class org.glassfish.json.JsonNumberImpl.class org.glassfish.json.JsonObjectBuilderImpl.class org.glassfish.json.JsonParserFactoryImpl.class org.glassfish.json.JsonParserImpl.class org.glassfish.json.JsonPrettyGeneratorImpl.class org.glassfish.json.JsonProviderImpl.class org.glassfish.json.JsonReaderFactoryImpl.class org.glassfish.json.JsonReaderImpl.class org.glassfish.json.JsonStringImpl.class org.glassfish.json.JsonStructureParser.class org.glassfish.json.JsonTokenizer.class org.glassfish.json.JsonWriterFactoryImpl.class org.glassfish.json.JsonWriterImpl.class org.glassfish.json.UnicodeDetectingInputStream.class javax.json-1.0.jar

Continue reading

Java program to send email using smtp

Download the project shown in youtube here, send_mail.rar Project Structure in Eclipse. This project uses jars activation-1.1.1.jaractivation-1.1.1.jar and mail-1.4.1.jar.mail-1.4.1.jar Send email using Gmail with Java program below Update the From email id,password and to email id with your email information. send_email_gmail.java package email; import java.util.*; import javax.mail.*; import javax.mail.PasswordAuthentication; import javax.mail.internet.*; public class send_email_gmail { …

Continue reading