Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Eclipse IDE: "Type name is empty" error when creating new Class

26 Jan 2014   #1
kathy025

Windows 7 Professional SP1 x64 (OEM)
 
 
Eclipse IDE: "Type name is empty" error when creating new Class

Hi guys,

I have always used Notepad++ for basic Java development and have manually compiled via cmdline. I am new to Eclipse IDE.

When I try to add a new class to a package, this error shows up:



The "Finish" button is greyed out because of this. I am unsure what to do.


My System SpecsSystem Spec
.
26 Jan 2014   #2
Alejandro85

Windows 7 Ultimate x64
 
 

You should fill the new class name, as this wizard will create all the basic structure for you. Afterwards you may want to rename to something else if some refactoring comes by.
My System SpecsSystem Spec
27 Jan 2014   #3
kathy025

Windows 7 Professional SP1 x64 (OEM)
 
 

Our first homework with the IDE:
Code:
package ph.edu.iacademy.regform;

public class RegForm {
	
	void printHeader() {
		System.out.println("\t\t      Information and Communications"
				+ " Technology Academy");
		System.out.println("\t\t\t     6764 Ayala Avenue, Makati City 1226");
		
		System.out.println("\n\t\t\t\tASSESSMENT/REGISTRATION FORM");
	}
	
	void printHR() {
		for(int ctr = 0; ctr < 93; ctr++) {
			System.out.print("-");	
		}
	}
	
	void printStudentDetails() {
		
	}
	
	void printSchedule() {
		System.out.println("\nSECTION\t\tSUBJECT NAME\t\t\t\tUNITS\tDAY\tTIME"
				+ "\t\tROOM#");
		System.out.println("SE21\t\tLinear Algebra\t\t\t\t3\tTHU\t14:45-17:45"
				+ "\t502");
		System.out.println("SE21\t\tSoftware Engineering Elective 4\t\t3\tTHU"
				+ "\t18:00-21:00\tCL1");
		System.out.println("SE21\t\tEmerging Communications Technologies\t3"
				+ "\tFRI\t14:45-17:45\tCL1");
		System.out.println("SE21\t\tSoftware Engineering 2\t\t\t3\tSAT"
				+ "\t11:30-14:30\tMMA3");
		System.out.println("SE21\t\tCore Java\t\t\t\t3\tSAT\t14:45-17:45"
				+ "\tMMA3");
		System.out.println("\t\tTOTAL UNITS: 15/15");
	}

	public static void main(String[] args) {
		RegForm rf = new RegForm();
		
		rf.printHeader();
		rf.printHR();
		rf.printSchedule();
		rf.printHR();
	}
}
Just prints stuff to console. Thanks for your help again!
My System SpecsSystem Spec
.

Reply

 Eclipse IDE: "Type name is empty" error when creating new Class




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
WMP Server Execution Error,Save "Class not recognised" error, others.
Hey! My father's computer, after running ADWCleaner yesterday, started behaving finicky. At first, Explorer.exe didn't work right. It kept saying "failed to initialize". Following some online guides, I issued regsvr32.exe over every file in the C: drive. This fixed that problem. But other...
General Discussion
file type exe not found"google play apk"android download error
Hi, I found a Google play download for android on softsonic but get error "file type exe not found" when selected from ad card? This is a nextbook PREMIUM 8SE multi touch capacitive screen, 800x600 pixels, 4.3 display 1080p, AML8726-M3 Cortex A9 1 GHz, DDR3 512 MB, Android OS 4.0 ice cream...
Hardware & Devices
all video files give error "class not registered" when trying to play
The title explains it all just restored my computer and now any kind of videos files i try to play give me the error "Class not registered" what do i do? btw, yes i did update all my video drivers.
Music, Pictures & Video
Where is "VIEW", "ARRANGE ICONS BY", "TYPE"
One feature I really liked in XP was the ability to look in a folder through My Computer and sort the files by extension. For example if I wanted to get all .jpg files to one side of the folder as I looked for a file, I could click View, Arrange Icons By, Type and make that happen. I don't see...
General Discussion
Error: "You must type a filename" when renaming folder under roaming .
Running: Win 7 Home Premium 64 bit, service pack 1 Logged in under account with administrator privileges (checked) I am trying to rename a folder that lives here: C:\Users\Username\AppData\Roaming When I right click on it and select rename and change the name ".foldername" to ".foldername2"...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 05:34.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App