Click here to Skip to main content
15,506,757 members
Home / Discussions / Java
   

Java

 
GeneralRe: How TO run the jar file in teradata ? Pin
Tauqeer Ahmad 202227-Jan-22 4:59
Tauqeer Ahmad 202227-Jan-22 4:59 
AnswerRe: How TO run the jar file in teradata ? Pin
jschell30-Jan-22 8:18
jschell30-Jan-22 8:18 
GeneralRe: How TO run the jar file in teradata ? Pin
Tauqeer Ahmad 202231-Jan-22 0:39
Tauqeer Ahmad 202231-Jan-22 0:39 
QuestionLooping Array and Satisfying multiple conditions-Support Pin
Member 1551308825-Jan-22 23:01
Member 1551308825-Jan-22 23:01 
AnswerRe: Looping Array and Satisfying multiple conditions-Support Pin
Afzaal Ahmad Zeeshan5-Feb-22 12:40
mveAfzaal Ahmad Zeeshan5-Feb-22 12:40 
QuestionPdf em java (PDF in Java) Pin
Daniel Carvalho 202221-Jan-22 2:54
Daniel Carvalho 202221-Jan-22 2:54 
AnswerRe: Pdf em java (PDF in Java) Pin
OriginalGriff21-Jan-22 3:00
mveOriginalGriff21-Jan-22 3:00 
GeneralRe: Pdf em java (PDF in Java) Pin
Daniel Carvalho 202224-Jan-22 6:53
Daniel Carvalho 202224-Jan-22 6:53 
import java.io.File;
import java.io.IOException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.text.PDFTextStripper;

public class NewClass {
public static void main(String[] args) throws IOException{
try {
// Creating file instance
File file = new File("test.pdf");
// Loading pdf file
PDDocument document = PDDocument.load(file);
PDFTextStripper pdfStripper = new PDFTextStripper();
// Fetching PDF document
String text = pdfStripper.getText(document);
System.out.println(text);
// Closing the document
document.close();
}catch(Exception e) {
System.out.println(e);
}

}
}


/PDDocument document = PDDocument.load(file);/ In this line there is an error in load, and I can't run the project
QuestionRe: Pdf em java (PDF in Java) Pin
David Crow24-Jan-22 7:06
David Crow24-Jan-22 7:06 
AnswerRe: Pdf em java (PDF in Java) Pin
Daniel Carvalho 202225-Jan-22 5:19
Daniel Carvalho 202225-Jan-22 5:19 
AnswerRe: Pdf em java (PDF in Java) Pin
Richard Deeming25-Jan-22 6:10
mveRichard Deeming25-Jan-22 6:10 
GeneralRe: Pdf em java (PDF in Java) Pin
englebart12-Feb-22 15:40
professionalenglebart12-Feb-22 15:40 
QuestionGetting data from a web site using Jsoup Pin
David Crow20-Jan-22 5:59
David Crow20-Jan-22 5:59 
AnswerRe: Getting data from a web site using Jsoup Pin
englebart12-Feb-22 15:44
professionalenglebart12-Feb-22 15:44 
Questionjava program Pin
Ricca Marie Fantilanan11-Jan-22 3:21
Ricca Marie Fantilanan11-Jan-22 3:21 
AnswerRe: java program Pin
Richard MacCutchan11-Jan-22 3:40
mveRichard MacCutchan11-Jan-22 3:40 
AnswerRe: java program Pin
Member 1550241317-Jan-22 0:01
Member 1550241317-Jan-22 0:01 
GeneralRe: java program Pin
Pete O'Hanlon17-Jan-22 0:18
mvaPete O'Hanlon17-Jan-22 0:18 
GeneralRe: java program Pin
Richard MacCutchan17-Jan-22 1:39
mveRichard MacCutchan17-Jan-22 1:39 
AnswerRe: java program Pin
Prashanth Rao 202119-Jan-22 0:18
Prashanth Rao 202119-Jan-22 0:18 
Questionhow do i properly connect my external style sheet link to my jsp page. Pin
jonathanIckovich25-Dec-21 20:42
jonathanIckovich25-Dec-21 20:42 
QuestionWhat is causing error in my merge sort java code? Pin
Vivek Halakatti3-Dec-21 6:20
Vivek Halakatti3-Dec-21 6:20 
AnswerRe: What is causing error in my merge sort java code? Pin
Richard MacCutchan3-Dec-21 7:09
mveRichard MacCutchan3-Dec-21 7:09 
QuestionWhat may be the error in this java ->merge sort code? Pin
Vivek Halakatti2-Dec-21 8:15
Vivek Halakatti2-Dec-21 8:15 
AnswerRe: What may be the error in this java ->merge sort code? Pin
Richard Deeming2-Dec-21 22:29
mveRichard Deeming2-Dec-21 22:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.