Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JAW browser  (Read 4793 times)
0 Members and 1 Guest are viewing this topic.
Offline kimi

Senior Newbie


Medals: 1



« Posted 2013-09-24 02:17:51 »

Hello everyone, we are 3 guys who are developing a Java browser for Java applications. What we are trying to build is a browser that can load Java applications natively (i.e. with no plugins) instead of HTML+JavaScript. We've also set up a website html.jawbrowser.com so that people can download and start playing with it. The browser uses JavaFX 2 and you'll find some toy apps once you open it. We really hope to find more people who want to contribute to this project, with the browser itself or sharing some program. We're not game developers, but we hope some of you will join us and maybe share some games  Smiley
Please feel free to ask questions or contact us directly, thanks a lot guys!
Offline ra4king

JGO Kernel


Medals: 337
Projects: 2
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2013-09-24 02:34:18 »

Hey this is cool! I downloaded it and got this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
Exception in thread "main" java.lang.RuntimeException: Application launch error
        at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:122)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: com.sun.glass.ui.win.WinApplication._
invokeLater(Ljava/lang/Runnable;)V
        at com.sun.glass.ui.win.WinApplication._invokeLater(Native Method)
        at com.sun.glass.ui.Application.invokeLater(Application.java:338)
        at com.sun.javafx.tk.quantum.QuantumToolkit.defer(QuantumToolkit.java:62
0)
        at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:17
3)
        at com.sun.javafx.application.PlatformImpl.runAndWait(PlatformImpl.java:
212)
        at com.sun.javafx.application.PlatformImpl.tkExit(PlatformImpl.java:320)

        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherIm
pl.java:421)
        at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:
47)
        at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
        ... 1 more


Also, you guys planning to move to Nashorn when it releases with Java8? I'm quite concerned with the speed of this right now.

Offline Vladiedoo
« Reply #2 - Posted 2013-09-24 02:51:20 »

Cool indeed! It worked for me, I like the clean interface look. I'm not familiar with programming anything web related so I'll ask the dumb question: is this going to become a browser such as Chrome, IE, Firefox, etc, or is it fitting a more specific niche?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ReBirth
« Reply #3 - Posted 2013-09-24 04:08:48 »

Can have thumbnail before I download it?

Offline SHC
« Reply #4 - Posted 2013-09-24 05:05:40 »

I got an error too.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
localhost:Downloads sriharshachilakapati$ java -jar jaw.jar
Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodError: getScaleFactor
   at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:281)
   at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:124)
   at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:163)
   at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
   at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
   at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.NoSuchMethodError: getScaleFactor
   at com.sun.glass.ui.mac.MacApplication._initIDs(Native Method)
   at com.sun.glass.ui.mac.MacApplication.<clinit>(MacApplication.java:34)
   at com.sun.glass.ui.mac.MacPlatformFactory.createApplication(MacPlatformFactory.java:33)
   at com.sun.glass.ui.Application.Run(Application.java:103)
   at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:271)
   ... 5 more

I'm on mac os x mountain lion 10.8.5 with java 7 update 40

Offline kimi

Senior Newbie


Medals: 1



« Reply #5 - Posted 2013-09-24 14:12:02 »

Thank you guys for the comments!

"You guys planning to move to Nashorn when it releases with Java8?"

We don't have a position on Nashorn yet, though we'll definitely make tests with it at some time. Currently we are only 3 people working on JAW, and since it's not a for-profit endeavor we cannot afford to work on it full time. For this reason we have to make choices about what to focus on and what to leave out. We've chosen to stick with JavaFX 2 but no doubt we'll look more into Nashorn, hopefully with the help of other developers.
We very much love this project because we believe there are huge opportunities by further separating client (within the browser) and server. Probably the single best advange is that all representation and formatting is done on the client - which also has a broad range of Java libraries at its disposal - whereas the server can stop worring about that and focus instead on handling data and serving data.
Nashorn "want to use scripting because of its dynamic style" and "The main advantage of having JavaScript running on the JVM is that it gives access to the vast array of pre-written Java libraries". We think this is indeed in line with what we are doing, so we'll definitely look for a deeper integration with Nashorn.

"I'm quite concerned with the speed of this right now."

When you load an app it runs like a "normal" standalone program. JAW is not an extra layer on top of which the app runs. The difference is that an app jar is loaded dynamically and instead of writing your own stage (as in JavaFX parlance) you're given a Pane from the browser where you can add your components. Possibly the only overhead is the SecurityManager which is used to sandbox the app. This means that you are not allowed to execute risky actions like read/write to a file or open an HTTP request, but instead you need to ask permission to the browser with calls similar to

1  
String response = jaw.httpGet(YOUR_URL_HERE);


However, we think this little overhead is compensated by the fact that a user can safely run your app and not be frightened or bothered by some popup that basically tells him his computer is gonna explode if he accepts to run the program "unrestricted" Smiley

"Is this going to become a browser such as Chrome, IE, Firefox, etc, or is it fitting a more specific niche?"

Nice question actually, not dumb at all! At the moment it's a niche, we programmers are that niche. We want it to growth though, because clearly everyone can benefit from a larger audience. If you mean "mainstream as Chrome/IE/Firefox", well... we really wish that Smiley On the other hand if you mean "technically as Chrome/IE/Firefox", then no. Differently from current browsers, we wish to have a rich client with better performance and which has access to a vast number of libraries with no need to resort to plugins or browser-specific components. We are not competing with Chrome/IE/Firefox, and despite the fact that we couldn't actually compete with them, there really is no reason to. I've absolutely no idea whether the guys at Mozilla would like or even consider something like this, but if they did we would actually love to collaborate and build something cool together rather then compete. Our efforts on JAW are not aimed at building the best next web browser to overshadow Firefox or Chrome. We want instead to raise awareness around this that we consider a cool idea, and try to involve more people like us that can bring an idea to reality.

"Can have thumbnail before I download it?"

http://imgur.com/VyLlRl9
You can also watch some videos here https://www.youtube.com/channel/UC-hO5Pi2IsfSK4DOScAN1RQ

Is there somebody here who would like to give it a try and write a simple game?

Thank you ra4king and SHC for the feedback, we'll try to solve that ASAP
Offline ra4king

JGO Kernel


Medals: 337
Projects: 2
Exp: 5 years


I'm the King!


« Reply #6 - Posted 2013-09-24 17:57:17 »

Any way you can solve my error? Smiley

Offline kimi

Senior Newbie


Medals: 1



« Reply #7 - Posted 2013-09-25 02:47:27 »

I've recompiled it and hopefully it's gonna work now, the download link is get.jawbrowser.com.

I've compiled it with Java 7u40, and successfully tested on WinXP and Debian both running Java 7u40. Unfortunately I can't test it on a Mac.

On the bright side: it should all become much easier with the release of jre8.
Offline SHC
« Reply #8 - Posted 2013-09-25 05:35:18 »

It's working now.


Offline Danny02
« Reply #9 - Posted 2013-09-25 10:30:38 »

I don't see what this projects tries to offer to me as a consumer. What are the benefits special features?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kimi

Senior Newbie


Medals: 1



« Reply #10 - Posted 2013-09-25 14:44:08 »

Thanks a lot SHC! I've also tested it on a Windows 8 machine and is working there as well.

"I don't see what this projects tries to other to me as a consumer. What are the benefits special features?"

At the moment we don't think there is an intrinsic value with the browser itself, for the same reason other browsers such as Firefox would probably be useless software if there were no websites. The value to the consumers comes indirectly from what we believe is the value for programmers. They can take advantage of a platform with a lot of libraries and better performance wrt JavaScript (for instance complex/tedious tasks like compression or encryption could possibly be performed within the browser), and they can deploy their apps without scary security popups (apps are sandboxed by default and can only ask the browser to carry on certain actions). The value you get as a consumer is a broad set of rich applications that you can browse and run without installing them or cope with plugins, and with no need  to trade on security by accepting notices like this



Thanks for your question  Wink
Offline xsvenson
« Reply #11 - Posted 2013-09-25 14:51:03 »

I'm not really sure about the underlying architecture of applets and the webstart but how would this jaw browser differentiate it from those 2 ?
Wouldn't it run into the same problems like applets did ? I mean on the exploit side of things.

“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Offline Danny02
« Reply #12 - Posted 2013-09-25 16:37:22 »

The problem with Applets is that the Java sandbox is not secure. So you are conveying a false sense of security to your users. My problem with this "browser" is, that the only thing it is doing is to download apps temporarily and then displaying/running them inside your browserframe. Compared to an app-store it has no value whatsoever.
Offline Troncoso

JGO Coder


Medals: 20



« Reply #13 - Posted 2013-09-25 16:41:32 »

He's not saying anything about security. Just that it removes the restrictions that browser security imposes. As for it's actual use, as he said in the OP, you can run Java apps natively, which is not how current browsers are running them. I see it as more of a development tool for quicker testing of your apps.
Offline wreed12345

JGO Knight


Medals: 24
Projects: 2
Exp: 2 years


http://linebylinecoding.blogspot.com/


« Reply #14 - Posted 2013-09-25 23:16:45 »

Get this error when running Sad


java -jar jaw.jar
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: com.sun.glass.ui.
win.WinApplication._submitForLaterInvocation(Ljava/lang/Runnable;)V
        at com.sun.glass.ui.win.WinApplication._submitForLaterInvocation(Native
Method)
        at com.sun.glass.ui.win.WinApplication.submitForLaterInvocation(Unknown
Source)
        at com.sun.glass.ui.InvokeLaterDispatcher.run(Unknown Source)

Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #15 - Posted 2013-10-08 20:10:18 »

I got one of these.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
C:\Users\MADS\Desktop>java -jar jaw.jar
RenderJob.run: internal exception
java.lang.UnsatisfiedLinkError: com.sun.prism.d3d.D3DContext.nSetBlendEnabled(JI
)I
        at com.sun.prism.d3d.D3DContext.nSetBlendEnabled(Native Method)
        at com.sun.prism.d3d.D3DContext.initState(Unknown Source)
        at com.sun.prism.d3d.D3DResourceFactory.<init>(Unknown Source)
        at com.sun.prism.d3d.D3DPipeline.createResourceFactory(Unknown Source)
        at com.sun.prism.d3d.D3DPipeline.getD3DResourceFactory(Unknown Source)
        at com.sun.prism.d3d.D3DPipeline.findDefaultResourceFactory(Unknown Sour
ce)
        at com.sun.prism.d3d.D3DPipeline.getDefaultResourceFactory(Unknown Sourc
e)
        at com.sun.prism.GraphicsPipeline.getDefaultResourceFactory(Unknown Sour
ce)
        at com.sun.javafx.tk.quantum.QuantumRenderer$3.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at com.sun.prism.render.RenderJob.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(Unknow
n Source)
        at java.lang.Thread.run(Unknown Source)



Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #16 - Posted 2013-10-17 16:18:58 »

Get this error when running Sad


java -jar jaw.jar
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: com.sun.glass.ui.
win.WinApplication._submitForLaterInvocation(Ljava/lang/Runnable;)V
        at com.sun.glass.ui.win.WinApplication._submitForLaterInvocation(Native
Method)
        at com.sun.glass.ui.win.WinApplication.submitForLaterInvocation(Unknown
Source)
        at com.sun.glass.ui.InvokeLaterDispatcher.run(Unknown Source)


Snap.

1  
2  
3  
4  
5  
java -jar jaw.jar
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: com.sun.glass.ui.win.WinApplication._submitForLaterInvocation(Ljava/lang/Runnable;)V
        at com.sun.glass.ui.win.WinApplication._submitForLaterInvocation(Native Method)
        at com.sun.glass.ui.win.WinApplication.submitForLaterInvocation(Unknown Source)
        at com.sun.glass.ui.InvokeLaterDispatcher.run(Unknown Source)

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Dxu1994
« Reply #17 - Posted 2013-10-20 18:41:53 »

Sorry but your sandbox is completely useless..

How to break out of your sandbox:

1  
jaw.Commons.allowedThreads.add(Thread.currentThread().getId());


or call it from reflectoin

Offline SHC
« Reply #18 - Posted 2013-10-21 14:27:35 »

@Dxu1994
+1 for a good find.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (7 views)
2014-07-29 12:53:52

Dwinin (7 views)
2014-07-29 10:59:34

E.R. Fleming (23 views)
2014-07-29 03:07:13

E.R. Fleming (9 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (51 views)
2014-07-17 23:47:54
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!