Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Applications like H2 DB run cmd prompt and then open a webpage on 8082 port number.
Can anyone please help me?
H2 DB is running an embedded web server so that you you can manage it.
If your application needs to serve web pages then you cab use jetty which you can embed right in your code: http://www.eclipse.org/jetty/
You can open a url or a local file in a browser using the answers here:
Getting java gui to open a webpage in web browser
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am creating a Java based application (a very tiny one) that downloads web-pages based on the URL that the user inputs.Now,the application does so, but shows only the source (HTML/JavaScript). How do I display the web-pages directly?
Short answer: render it.
Long answer: you need a web engine (HTML/JS/CSS parser + renderer on a canvas). This includes but not limited to Qt webkit, Chrome Embedded Framework, Gecko. There could be existing pure Java solution as well, but I don't know.
Alternative solution is to open it with a web browser by giving path to the downloaded web pages.
You can save the downloaded web pages and open it through any browser, if you want it to be programmatically, then you have to re-host the content locally on web server and then you could use selenium to open the webpage on any given browser.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am creating a program that searches a folder and catalogs all the files it finds in a database. I know how to create a localhost database (or one hosted on a web) and connect to that. But that would require anyone who I give this app to, to have set up their own database.
I would like to be able to have a specific database created for only this application, that lives in the same root folder with the application and can be moved from computer to computer (preferably MySQL). Is this possible?
Turns out what I need is an Embedded database (Apache Derby, SQLite). Thanks guys in the comments!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I would like to know how can I automatically pull html from web site and put it into eclipse or visual studio. I would like my program to pull it from internet on every five minutes or so. Also can my program autoclick on some buttons or refresh the page?
It looks like you need http://www.seleniumhq.org/ - it can download source of the page and you can programmatically click on links and perform other interactions with the page
Also you can download web pages with Apache HTTP Client library - http://hc.apache.org/httpcomponents-client-ga/index.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
If I have a Java web project on github, is it possible to create a github page from the source files? Something like this (How is posible add several javascript libraries to main html?).
You can't run your Java application on GitHub. For this purpose you need an application server, for example Tomcat, Glassfish, or Wildfly. Github gives you the opportunity to show only HTML pages with JavaScript.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am trying to pass database authentication details dynamically when my Web application deploys into tomcat. This process succeeded when using Windows console, but when porting to Linux and executing startup.sh, Tomcat starts the deployed Web Application, but it is not prompting for password.
This isn't the way things are usually done.
The proper idiom is to set up a named JNDI connection pool. It has the credentials and URL at start up; the app server brings it up. See how to do it here.