How to compile files in package and its subpackages at one time
I have package A , under A there are files and subpackages B,C,D, How can I complie files in A,B,C D packages with javac at one time besides using make. Thank you very much!
Qi
Try something like:javac -d <destination directory> directory1/*.java directory2/*.java directory3/*.java
Similar Messages
-
How to compile files in Packages
Hi ,
What is the command to compile the files in the package with the following structure.
/com/client/compute/*.java
/com/client/compute/DAO/*.java
/com/client/compute/DTO/*.java
Since there are sub directories the following command will give errors when files are referencing the classes in other directories.
javac /com/client/Compute/*.javaIf your code is split up into the following directories like so...
C:/myapp/source/com/client/compute/*.java
C:/myapp/source/com/client/compute/DAO/*.java
C:/myapp/source/com/client/compute/DTO/*.javathen you can open a command prompt to C:/myapp/source and run the following.
javac -classpath ./ com/client/compute/*.java com/client/compute/DAO/*.java com/client/compute/DTO/*.javaJust sepparate your packages with spaces.
If your classes need access to other libraries in Jar files you can add the libraries to the -classpath directive. For example say your classes require access to other classis in a jar file called C:/myapp/MyLib.jar
javac -classpath "./";"C:/myapp/MyLib.jar" com/client/compute/*.java com/client/compute/DAO/*.java com/client/compute/DTO/*.javaYou can sepparate multiple resource with a semi-colon.
-S- -
How do I recover a .app and its file contents after osx "click and hold" "hit x button" delete.
Accidently deleted rapidweaver and all of its content and paid plugins with it. all contain in its package contents. how do i restore. I tried using recovery software.It is possible that you inadvertently corrupted the file while doing the edit.
But it could also be possible that you moved the file? For iMovie to see it, it should be in the Movies/iMovie Projects folder. -
How to move some xml element and its content to a new frame
Hi All,
How to move some xml element and its content to a new frame.Hi Chinnadk,
Sorry my code its comment some lines. Now only I check the forum thread, you just try one more time.
#target InDesign;
#include "/Program Files (x86)/Adobe/Adobe InDesign CS5.5/Scripts/XML Rules/glue code.jsx"
var myDoc = app.activeDocument;
//____________________ XML RULE SET
var myRuleSet = new Array (new margintag);
with(myDoc){
var elements = xmlElements;
__processRuleSet(elements.item(0), myRuleSet);
function margintag(){
this.name = "margintag";
//this.xpath = "//margintag[@type='mn2']";
this.xpath = "//margintag";
this.apply = function(myElement, myRuleProcessor){
with(myElement){
app.select(myElement);
try{
var myPrePara = app.selection[0].paragraphs[-1].parentTextFrames[0].paragraphs.previousItem(app.selection[0].paragraphs[-1]);
if(myPrePara.characters[-1].contents=="\r"){
myPrePara.characters[-1].remove();
var myTextframe = myElement.placeIntoInlineFrame(["7p9","6p"]);
myTextframe.appliedObjectStyle= myDoc.objectStyles.item("MN1");
myTextframe.fit(FitOptions.FRAME_TO_CONTENT);
myTextframe.parentStory.paragraphs.everyItem().appliedParagraphStyle = app.activeDocument.paragraphStyles.itemByName("MN1");
}catch(e){}
app.selection = null;
return true;
thx,
csm_phil -
How to get Portal Login User and Its Related BP in CRM?
Hi,
An ABAP Webdynpro program is called in CRM from Portal user by a portal link. How to get the user ID and its related BP in CRM? Thanks!
The portal is integrated with ECC, and all users and BPs are maintained in ECC then replicated to CRM.
Best regards,
HaoHi,
Try the below code
IUserFactory userfact=UMFactory.getUserFactory();
IUser user=userfact.getUserByUniqueName(request.getUser().getUserId());
String usrid=user.getUniqueName();
And also you can get the groups assigned to user by using the below code
Iterator groups = user.getParentGroups(true);
while (groups.hasNext()) {
String groupstr = (String) groups.next();
IGroup g = UMFactory.getGroupFactory().getGroup(groupstr);
response.write("Group name "g.getUniqueName()"<br>");
Regards
Suresh -
How to pass data between JDialog and its parent window ?
Hi,
I am new to swing. I want to know how pass data between a JDialog and its parent window.
If you have any information please reply with example code.
Thank Youhi Encephalopathic ,
I was looking for something like as it was given in the link provided by you.
Thank you for reply It really helped me. -
I went in you tube and watched videos on how to fix my headphone jack and its not the headphones cause when I look inside I see this little white costing in there I think that's the problem how can I fix it
- Try cleaning out/blowing out the headphone jack. Make sure that y do not leave any foreign material or leave anything in the jack. Try inserting/removing the plug a dozen times or so.
Try the following to rule out a software problem
- Reset the iPod. Nothing will be lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup
- Restore to factory settings/new iPod.
- Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
Apple Retail Store - Genius Bar
If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
Apple - iPod Repair price
A third-party place like the following will replace the jack for less. Google for more.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
Replace the jack yourself
iPod Touch Repair – iFixit -
HT204291 how to transfer files between 5C and ipad
how to transfer files between 5C and ipad data
iCloud: http://www.apple.com/icloud/features/
or using a computer, iTunes: http://support.apple.com/kb/ht1296 -
I'm on the 899 photography package and its asking for a serial number for adobe photo shop ?
Hi i just bought the pay monthly photography package and its asking for a serial number for adobe photshop ?
Sign in, activation, or connection errors | CS5.5 and later
Mylenium -
HT1451 how to eliminate multiple album covers and consolidate back to one album
how to eliminate multiple album covers and consolidate back to one album cover
Duplicate the tracks, then edit the properties of the duplicates. Or make a playlist, but then you don't get to add different artwork. You cannot make one physical audio file part of two different albums.
tt2 -
How to validate XML against XSD and parse/save in one step using SAXParser?
How to validate XML against XSD and parse/save in one step using SAXParser?
I currently have an XML file and XSD. The XML file specifies the location of the XSD. In Java code I create a SAXParser with parameters indicating that it needs to validate the XML. However, SAXParser.parse does not validate the XML, but it does call my handler functions which save the elements/attributes in memory as it is read. On the other hand, XMLReader.parse does validate the XML against the XSD, but does not save the document in memory.
My code can call XMLReader.parse to validate the XML followed by SAXParser.parse to save the XML document in memory. But this sound inefficient. Besides, while a valid document is being parsed by XMLReader, it can be changed to be invalid and saved, and XMLReader.parse would be looking at the original file and would think that the file is OK, and then SAXParser.parse would parse the document without errors.
<Book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="book.xsd" name="MyBook">
<Chapter name="First Chapter"/>
<Chapter name="Second Chapter">
<Section number="1"/>
<Section number="2"/>
</Chapter>
</Book>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Book">
<xs:complexType>
<xs:sequence>
<xs:element name="Chapter" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Section" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="xnumber"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="name"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="name"/>
</xs:complexType>
</xs:element>
</xs:schema>
public class SAXXMLParserTest
public static void main(String[] args)
try
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setNamespaceAware(true);
factory.setValidating(true);
SAXParser parser = factory.newSAXParser();
parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
"http://www.w3.org/2001/XMLSchema");
BookHandler handler = new BookHandler();
XMLReader reader = parser.getXMLReader();
reader.setErrorHandler(handler);
parser.parse("xmltest.dat", handler); // does not throw validation error
Book book = handler.getBook();
System.out.println(book);
reader.parse("xmltest.dat"); // throws validation error because of 'xnumber' in the XSD
public class Book extends Element
private String name;
private List<Chapter> chapters = new ArrayList<Chapter>();
public Book(String name)
this.name = name;
public void addChapter(Chapter chapter)
chapters.add(chapter);
public String toString()
StringBuilder builder = new StringBuilder();
builder.append("<Book name=\"").append(name).append("\">\n");
for (Chapter chapter: chapters)
builder.append(chapter.toString());
builder.append("</Book>\n");
return builder.toString();
public static class BookHandler extends DefaultHandler
private Stack<Element> root = null;
private Book book = null;
public void startDocument()
root = new Stack<Element>();
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
if (qName.equals("Book"))
String name = attributes.getValue("name");
root.push(new Book(name));
else if (qName.equals("Chapter"))
String name = attributes.getValue("name");
Chapter child = new Chapter(name);
((Book)root.peek()).addChapter(child);
root.push(child);
else if (qName.equals("Section"))
Integer number = Integer.parseInt(attributes.getValue("number"));
Section child = new Section(number);
((Chapter)root.peek()).addSection(child);
root.push(child);
public void endElement(String uri, String localName, String qName) throws SAXException
Element finished = root.pop();
if (root.size() == 0)
book = (Book) finished;
public Book getBook()
return book;
public void error(SAXParseException e)
System.out.println(e.getMessage());
public void fatalError(SAXParseException e)
error(e);
public void warning(SAXParseException e)
error(e);
public class Chapter extends Element
public static class Section extends Element
private Integer number;
public Section(Integer number)
this.number = number;
public String toString()
StringBuilder builder = new StringBuilder();
builder.append("<Section number=\"").append(number).append("\"/>\n");
return builder.toString();
private String name;
private List<Section> sections = null;
public Chapter(String name)
this.name = name;
public void addSection(Section section)
if (sections == null)
sections = new ArrayList<Section>();
sections.add(section);
public String toString()
StringBuilder builder = new StringBuilder();
builder.append("<Chapter name=\"").append(name).append("\">\n");
if (sections != null)
for (Section section: sections)
builder.append(section.toString());
builder.append("</Chapter>\n");
return builder.toString();
}Edited by: sn72 on Oct 28, 2008 1:16 PMHave you looked at the XML DB FAQ thread (second post) in this forum? It has some examples for validating XML against schemas.
-
hello, I am trying to reinstall os x lion in my macbook pro mid 2012, from my recovery disc, and its imposible because every time I have problems to download de installer or something that is required to do that. what can I do?
When you do get it downloaded, before you do anything else, save the Lion installer - make a copy and put it somewhere safe. you can then reuse, make a clean install and other things.
OS X Lion Install to Different Drive
How to create an OS X Lion installation disc MacFixIt
Migration Assistant Update for Mac OS X Snow Leopard
http://www.apple.com/support/lion/installrecovery/
Create an OS X Lion Install disc
http://reviews.cnet.com/8301-13727_7-20080989-263/how-to-create-an-os-x-lion-ins tallation-disc
How to clone your system:
http://macperformanceguide.com/Mac-HowToClone-backup.html
http://macperformanceguide.com/Mac-HowToClone.html
http://www.macupdate.com/app/mac/7032/carbon-copy-cloner
http://www.macperformanceguide.com/blog/2012/20120711_2-MacPro-internal-clone-ba ckup.html
Yes I strongly recommend making a clone you can boot from in addition to use TimeMachine.
Carbon Copy Cloner will also offer to copy and make a Recovery partition on the 2nd drive. -
Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it in some other form befor dragging it?
Hello djensen1x,
Could you please let me know what version of Acrobat are you using.
Also, tell me your workflow of combining those PDF files?
Please share the screenshot of the error message that you get.
Hope to get your response.
Regards,
Anubha -
When trying to update apps from iPad and iPhone a previous one time users email keeps coming up. How do I delete their information?
delete off any apps that are asking for the wrong apple id and download/sync them over from the correct one
-
How do I manage 2 Ipads and 2 iphones on one ITunes account.
How do I manage 2 Ipads and 2 iphones on one ITunes account. Each device has a different name. But every time I plug them into iTunes on my Pc all the apps get screwed up. apps disappear etc. I have "sync apps" selected without automatic updates. I'm thinking I should have this unselected, but that does make sense to me. Shouldn't I be able to have one iTunes account and manage each device independently. What settings to do I need to apply to itunes so that every time i plug the devices in they don't get all messed up? thanks in advance
Also, Iphone 4s is possible to rotate pictures without extra hassle of downloading software??You can try contacting iTunes Support and ask them if they can remove the balance from your account so that you can change countries : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
Maybe you are looking for
-
HP Officejet Pro 7680 all in one printer
I have a 7680 officejet pro printer which is not fully printing the black text on print jobs which are not set to " fine" on the print function. I have replaced the cartridge and tried several times to clean the printhead using the machine's "clean
-
Updating WBS element in a sales order
There is application in Project System (PS) module where I am creating the Project using bapi BAPI_PROJECT_MANTAIN and then uploading the budget for the same using bapi KBPP_EXTERN_UPDATE_CO. After this when I am trying to update the sales order to u
-
Cursor Coordinate​s & Rectangle Coordinate​s not matching
hello! I am actually drawing a drawing a rectangle over xy graph using mouse clicking events and I need coordinates exactly the way it is extracted by cursor.The indicator ''coord2'' & ''cursor 0'' should give me same results.I need output of coord 2
-
Select on table with 1800 rows is slow
I have a table with 1800 rows. Each entry has a geometry position and a geometry polygon around the position. I am using the polygon to detect which (other) entries are near the current entry. In the following testdata and the subsequent query, i am
-
Show conversations in a default font
I have not seen a working answer to this yet: I want to be able to have a default readable font for Lync 2010 so that conversations are readable. Some people insist on using "fun" fonts, italics etc. I dont mind the çolors, I just want the font to be