netbeans-7

Titled border issue for JPanel

这一生的挚爱 提交于 2019-12-11 03:09:00
问题 I developed an application using netbeans. But the title of the titled border of JPanel has some alignment issue. In the 'show preview' the title is displaying as expected, but while running the code, the title goes up above the panel. Can any one help me to resolve this issue. Expected panel Actual panel while running the project Panel properties I know this is some property issue with panel. I googled by couldn't find a valid solution. Stack experts please help to resolve this issue. I am

Java jar file not running in Linux terminal

半腔热情 提交于 2019-12-11 01:38:58
问题 I am trying to run a .jar file in terminal on Linux but gives an error: [root@localhost dist]# java -jar helloworld.jar Exception in thread "main" java.lang.ClassFormatError: helloworld.Helloworld (unrecognized class file version) at java.lang.VMClassLoader.defineClass(libgcj.so.7rh) at java.lang.ClassLoader.defineClass(libgcj.so.7rh) at java.security.SecureClassLoader.defineClass(libgcj.so.7rh) at java.net.URLClassLoader.findClass(libgcj.so.7rh) at gnu.gcj.runtime.SystemClassLoader.findClass

Is there a google app engine plug-in for Netbeans 7.3

左心房为你撑大大i 提交于 2019-12-10 22:06:40
问题 Is there a google app engine plug-in for Netbeans 7.3? I keep finding old links for previous version(all links are not working) but I cannot find a new version of the plugin anywhere. I am looking to create a java-based google app engine project. 回答1: Try here: https://code.google.com/p/nb-gaelyk-plugin/downloads/list It's a fixed clone from kenai The source code: https://github.com/Valery-Sh/NbAppEngine 来源: https://stackoverflow.com/questions/16492669/is-there-a-google-app-engine-plug-in-for

Display random images from folder to JLabel in Netbeans

淺唱寂寞╮ 提交于 2019-12-10 18:16:06
问题 My project contains a folder named images containing images. I want to display the images randomly to the JLabel in the frame when a button pressed. I tried the code below: private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { Image im=new ImageIcon(this.getClass().getResource("/images/a1.jpg")).getImage(); ImageIcon iconLogo = new ImageIcon(im); jLabel2.setIcon(iconLogo); } This code displays only the image a1. But I need the images randomly (one image at a time). 回答1: Use

how to solve missing hibernate-support library in copied netbeans project

做~自己de王妃 提交于 2019-12-10 17:47:05
问题 I am working on this Java code given using NetBeans. I copy code and trying to run and getting following error Warning: Could not find file /home/blackbird/NetBeansProjects/XCRIBuilder/${libs.hibernate-support.classpath} to copy** in NetBeans --> project properties it says missing hibernate-support library, but I can see there are multiple hibernate related jar files already added to library. is there any classPath need to set-up for hibernate? if I create new java web-application project in

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file “name of class”

前提是你 提交于 2019-12-10 16:30:08
问题 I know this question may seems stupid since i cannot give a lot of infos about it, but I think that the problem has to be some kind of bug... I have written a java program whith NetBeans 7.1, which now gets me this error when trying to run. 10 mins ago it was perfectly running, and i have changed nothing to the class the error refers to Could this be some kind of NetBeans error? Maybe it is a well know problem? 回答1: The JDK says for ClassFormatError: Thrown when the Java Virtual Machine

How can I stage specific lines of file to git in NetBeans?

别说谁变了你拦得住时间么 提交于 2019-12-10 14:16:35
问题 I'm quite new to using NetBeans and today I faced a problem. I have used to stage only part of files to make better commits. I have used vim and fugitive plug-in, where I can just move specific lines from unstaged to staged. I can do a workaround by calling git add -p , but it would be nice to do it straight from NetBeans IDE. Is there a mysterious way to do it simple by clicking somewhere and stage specific line(s)? 回答1: Using git add -p is not a workaround but the way to do it. If you need

Java EE 7 First Cup Tutorial errors in Maven: Could not find artifact org.glassfish.javaeetutorial.firstcup:firstcup:pom:7.0.1-SNAPSHOT

橙三吉。 提交于 2019-12-10 14:05:32
问题 I'm following along with the Java EE 7 updated version of FirstCup. I have glassfish 4 installed and am using NetBeans 7.3. I'm working on the very first example and I'm getting maven issues. I generated the archetypes and am able to create the dukes-age project. However it has non-resolvable maven issues: Could not find artifact org.glassfish.javaeetutorial.firstcup:firstcup:pom:7.0.1-SNAPSHOT Here is the full error: [INFO] Scanning for projects... [ERROR] The build could not read 1 project

Netbeans - generating entity class from database

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 13:32:07
问题 I am using netbeans IDE 7.1. I am trying to generate entity classes from a database(sql server). I am able to setup the connection to this remote datasource but in the New Entity Classes from database Wizard the tables are not showing up and at the bottom it says select atleast one table. I could execute queries and browse through the tables from the netbeans databases service. Can someone help me to fix this.. Thanks 回答1: maybe your schema is not selected correctly, check on service windows-

Can we do XSLT 2.0 with Netbeans 7?

夙愿已清 提交于 2019-12-10 11:29:30
问题 In its current form, Netbeans only supports XSLT 1.0 and does not support XSLT 2.0. How do we use XSLT 2.0 with Netbeans 7? 回答1: How to make Saxon the JRE-installation-default XSLT Processor: (So not only for Netbeans, other Java applications might be impacted as well.) Get Saxon for Java (there are different editions, pick the one suitable for you) and copy saxonXYZ.jar to the jre/lib/ext dir. In the jre/lib dir create a jaxp.properties file with following content: javax.xml.transform