Re: Contact form does not working Programming Web Development by Biiim … my hosting with the [PHPmailer](https://github.com/PHPMailer/PHPMailer) package, it's maybe a bit of a headache if you… Re: Contact form does not working Programming Web Development by Biiim … correctly and I was not an admin. the PHP mailer package solved the problem though package in java Programming Software Development by mallikaalokam … java.io.*; import java.lang.*; import java.util.*; package Yo public class C { String s,f,d; C(String ….display(); } } i created a folder in D:\ and stored the package class in it den gave its path in environmental variable… Re: Package problems Programming Software Development by stultuske package everydayUse.Print; here you are saying that your Print class is inside the package everydayUse.Print; but you are not importing a package named everydayUse anywhere. Package Programming Software Development by solomon_13000 …eugene\scjp containing the following source code: [CODE] package com.test.eugene.scjp; public class SuperClass { private… name; } } [/CODE] Then I created the second package inside the directory C:\test\raj\scjp containing the following… source code: [CODE] package com.test.raj.scjp; import com.test.eugene… Re: Package Programming Software Development by majestic0110 The folder hierarchy has to reflect the package statement I believe. So [QUOTE]C:\test\eugene\scjp[/QUOTE] … I am not sure - hopefully someone with more experience on package/dir structure will kindly help out if I am wrong. Re: Package Programming Software Development by solomon_13000 Now it works. I SET CLASSPATH=.;C:\ The I compiled the second package. Re: package help!! Programming Software Development by newcoder310 ok the source package contains test1 and test2. I'm not trying to extend the package. package test1; class p1{ //code here } package test2; import test1.p1; class p2 extends p1{ //code here } This is how the programs look Re: package help!! Programming Software Development by newcoder310 ….java and test2 contains p2.java. //This is in p1 package test1; class p1{ //code here } //This is in p2… package test2; import test1.p1; class p2 extends p1{ //code here } … try to compile p2 it says that there is no package called test1 at all and that there is not a… Re: package help!! Programming Software Development by JKP() …[/QUOTE] You need to compile the classes in the package using javac command. Befor compiling a class that imports… another class in the package, you must compile the class it imports first. The…being your compiler could not recognize the classes in your package, its because those classes were not properly compiled. … Re: Package Programming Software Development by NormR1 The classpath should point to the folder that contains the package path folder. The classpath plus the package path should point to the folder with the .class file. There should be no overlap between the two paths. [COLOR="Red"]C:\Users\nHulk\java\[/COLOR][COLOR="Green"]p1[/COLOR]\ The classpath in red, the package in green Re: Package Programming Software Development by NormR1 … D:\JavaDevelopment\Testing\ForumQuestions7> [/QUOTE] [CODE] // Import the test package import packageTest.*; public class TestUsingPackage { TestPgm tp = new TestPgm(); } [/CODE…] The following is in the packageTest folder: [CODE] // Test using package package packageTest; public class TestPgm {} [/CODE] Re: package help!! Programming Software Development by pbl You can extend a class from a package but you can't extend the package itself and you will have to show your directory structure and how you do your import statements Re: package help!! Programming Software Development by javaAddict … are inside must have the name of their package. p1 class that has package test1 must be under a test1 folder. If… Re: Package Programming Software Development by nHulk I hav 2 class files in p1 package ie in folder p1. outside folder i hav one java program importing all classes of p1 package : i am using : import p1.*; its not working !! so whats solution ? package help!! Programming Software Development by newcoder310 … the error im getting is that I there is no package called test2 and there is no class called p1. I… Re: package help!! Programming Software Development by lcy320stud Are the both packages in the same sourse package? Re: package help!! Programming Software Development by pbl [i]Are the both packages in the same sourse package? [/i] They just can't That is precisely why packages were invented Re: package help!! Programming Software Development by Shanki87 make class p1 public ...............i.e package test1; public class p1{ //code here } Re: package help!! Programming Software Development by newcoder310 i tried making it public but it is not recognising the package at all. also the class Re: package help!! Programming Software Development by javaAddict Where did the p1.class file as created? Did you set the classpath for that package? Re: package help!! Programming Software Development by newcoder310 ok.....on the desktop i created a folder i set the class path......in the folder i created 2 sub folders test1 and test2.....u know the rest.....pi.class is in test1.....p2.class cant be created because it is not compiling....The error that im getting while compiling says that there is no package called test1 and no class called p1. Package Programming Software Development by nHulk … to import all the classes present in a user defined package, by using the statement as import mypack.*; but it's… Re: Package Programming Software Development by msvinaykumar Check whether your classes inside P1 are public .. Coz if it is a default specifiers then you cannot access from outside pkg And are u using any editor ? If not then compile java files related to package p1 using -d option javac -d . (Alljava files related to P1) and then run like this javac -cp . AOTest.java Let me know result... Re: Package Programming Software Development by nHulk … C:\Users\nHulk\java\p1 AOTest.java AOTest.java:1: package p1 does not exist import p1.*; ^ AOTest.java:6: cannot… Re: Package Programming Software Development by nHulk Problem is 1) At this location C:\Users\nHulk\java\p1 i have 2 class files AOperation.class & p1class.class 2)i have java file at location C:\Users\nHulk\java with name AOTest.java ,Int this file i am importing all class from package p1 using statement import p1.* But while compiling javac AOtest.java : this statement is giving error Re: package in java Programming Software Development by stultuske that's normal. first of all, your package statement has to be the very first one in your … before your import statements. secondly, you haven't named your package java.Yo, you named it Yo, so, change your code… to: [Code=Java] package Yo; // don't forget the ; import java.io.*; import java… Re: package in java Programming Software Development by rushikesh jadha There are two things package name should always end with semicolon. secondly,package declaration should always be the first statement of your code. Re: package in java Programming Software Development by mallikaalokam i still get an error that C(java.lang.String) is not public and can not be accessed outside package error at super(s,f,d); package org.jboss.netty.channel does not exist Programming Software Development by _neo_ ….jboss.netty.channel.ChannelHandlerContext; ^ QuoteOfTheMomentClientHandler.java:2: package org.jboss.netty.channel does not exist import org.….jboss.netty.channel.ChannelHandlerContext; ^ QuoteOfTheMomentClientHandler.java:2: package org.jboss.netty.channel does not exist import org.…